Skip to main content

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.git via git clone --recurse-submodules https://github.com/ShenQianli/primal.git
  • Make sure you have setuptools
  • Run make Pyinstall command.

Install from source file (Github) with CMAKE:

  • Clone primal.git via git clone --recurse-submodules https://github.com/ShenQianli/primal.git
  • Make sure you have setuptools
  • Build the source file first via the cmake with CMakeLists.txt in the root directory. (You will see a .so or .dylib file under (root)/lib/ )
  • Run cd python-package; sudo python setup.py install command.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyprimal-0.0.0.tar.gz (341.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyprimal-0.0.0-py3-none-any.whl (346.3 kB view details)

Uploaded Python 3

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

Hashes for pyprimal-0.0.0.tar.gz
Algorithm Hash digest
SHA256 0e46a07fba7642c8d1883a87222959b90f6560205a23e2dbb6745da5593f6033
MD5 de572834377dfed6fb3a933fb62d889e
BLAKE2b-256 13c3fb77f630d73d68765c9a20402bfd50628e469691a18bf63fb0e9dc52f198

See more details on using hashes here.

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

Hashes for pyprimal-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dadef905d1c4048c7bf0dcc5636ed995546825a46e841b17158bc747fa88e7e2
MD5 fe9de8beaccd759b0d1f5950d7e60c01
BLAKE2b-256 4efe34df3f7c912d7b1aaaefd8cc61ddca8d709caa97af7749d0e7ddc6ea3f2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page