Instructions to use jonl521/modeling_simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonl521/modeling_simple with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jonl521/modeling_simple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modeling_simple / .venv /lib /python3.14 /site-packages /numpy /matrixlib /tests /test_regression.py
Download .venv/lib/python3.14/site-packages/numpy/matrixlib/tests/test_regression.py from jonl521/modeling_simple: direct link, hf CLI and curl.
- Browser
- Download file 934 Bytes
-
https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/numpy/matrixlib/tests/test_regression.py
- Command line
-
hf download hf://jonl521/modeling_simple/.venv/lib/python3.14/site-packages/numpy/matrixlib/tests/test_regression.py
-
curl -L -o test_regression.py https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/numpy/matrixlib/tests/test_regression.py
934 Bytes
| import numpy as np | |
| from numpy.testing import assert_, assert_equal, assert_raises | |
| class TestRegression: | |
| def test_kron_matrix(self): | |
| # Ticket #71 | |
| x = np.matrix('[1 0; 1 0]') | |
| assert_equal(type(np.kron(x, x)), type(x)) | |
| def test_matrix_properties(self): | |
| # Ticket #125 | |
| a = np.matrix([1.0], dtype=float) | |
| assert_(type(a.real) is np.matrix) | |
| assert_(type(a.imag) is np.matrix) | |
| c, d = np.matrix([0.0]).nonzero() | |
| assert_(type(c) is np.ndarray) | |
| assert_(type(d) is np.ndarray) | |
| def test_matrix_multiply_by_1d_vector(self): | |
| # Ticket #473 | |
| def mul(): | |
| np.asmatrix(np.eye(2)) * np.ones(2) | |
| assert_raises(ValueError, mul) | |
| def test_matrix_std_argmax(self): | |
| # Ticket #83 | |
| x = np.asmatrix(np.random.uniform(0, 1, (3, 3))) | |
| assert_equal(x.std().shape, ()) | |
| assert_equal(x.argmax().shape, ()) | |