PYthon package PaRametric sImplex Method for spArse Learning
Project description
PYPRIMAL
PYPRIMAL: PYthon package PaRametric sImplex Method for spArse Learning
Requirements
- Linux or MacOS
Installation
Install from source file (Github) with Makefile:
- Clone
primal.gitviagit clone --recurse-submodules https://github.com/ShenQianli/primal.git - Make sure you have setuptools
- Run
make Pyinstallcommand.
Install from source file (Github) with CMAKE:
- Clone
primal.gitviagit clone --recurse-submodules https://github.com/ShenQianli/primal.git - Make sure you have setuptools
- Build the source file first via the
cmakewithCMakeLists.txtin the root directory. (You will see a.soor.dylibfile under(root)/lib/) - Run
cd python-package; sudo python setup.py installcommand.
Install from PyPI:
pip install pyprimal- Note: Owing to the setting on different OS, our distribution might not be working in your environment (especially in Windows). Thus please build from source.
You can test if the package has been successfully installed by:
import pyprimal
pyprimal.test()
Usage
from pyprimal import SparseSVM
x = [[1,2,3], [4,5,6], [7,8,9]]
y = [-1, 1, 1]
solver = SparseSVM(x, y)
solver.train()
result = solver.coef()
solver.plot()
solver.plot('regpath')
See tutorial
Copy Right
Author: Qianli Shen, Zichong Li
Maintainer: Qianli Shen shenqianli@pku.edu.cn
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyprimal-0.0.0.tar.gz.
File metadata
- Download URL: pyprimal-0.0.0.tar.gz
- Upload date:
- Size: 341.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e46a07fba7642c8d1883a87222959b90f6560205a23e2dbb6745da5593f6033
|
|
| MD5 |
de572834377dfed6fb3a933fb62d889e
|
|
| BLAKE2b-256 |
13c3fb77f630d73d68765c9a20402bfd50628e469691a18bf63fb0e9dc52f198
|
File details
Details for the file pyprimal-0.0.0-py3-none-any.whl.
File metadata
- Download URL: pyprimal-0.0.0-py3-none-any.whl
- Upload date:
- Size: 346.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dadef905d1c4048c7bf0dcc5636ed995546825a46e841b17158bc747fa88e7e2
|
|
| MD5 |
fe9de8beaccd759b0d1f5950d7e60c01
|
|
| BLAKE2b-256 |
4efe34df3f7c912d7b1aaaefd8cc61ddca8d709caa97af7749d0e7ddc6ea3f2d
|