File tree Expand file tree Collapse file tree 1 file changed +33
-26
lines changed Expand file tree Collapse file tree 1 file changed +33
-26
lines changed Original file line number Diff line number Diff line change 1- # multi_svr [ ![ Build Status] ( https://travis-ci.org/nwtgck/multi-svr-python.svg?branch=develop )] ( https://travis-ci.org/nwtgck/multi-svr-python ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/nwtgck/multi-svr-python/badge.svg?branch=develop )] ( https://coveralls.io/github/nwtgck/multi-svr-python?branch=develop )
1+ # multi_svr
2+ [ ![ Build Status] ( https://travis-ci.org/nwtgck/multi-svr-python.svg?branch=develop )] ( https://travis-ci.org/nwtgck/multi-svr-python ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/nwtgck/multi-svr-python/badge.svg?branch=develop )] ( https://coveralls.io/github/nwtgck/multi-svr-python?branch=develop )
23
34Support Vector Regression (SVR) for multidimensional labels
45
56
6- ## Installation
7+ ## Install with pip
78
8- ``` bash
9- pip3 install git+https://github.com/nwtgck/multi-svr-python
10- ```
9+ ``` bash
10+ pip3 install git+https://github.com/nwtgck/multi-svr-python
11+ ```
1112
13+ ## Install with Pipenv
14+
15+ ``` bash
16+ pipenv install --dev toml
17+ pipenv install git+https://github.com/nwtgck/
[email protected] #egg=multi_svr
18+ ```
1219
1320 ## Usage
1421
15- ``` python
22+ ``` python
1623import multi_svr
1724from sklearn import metrics
1825
1926X = [
20- [0 , 0 ],
21- [0 , 10 ],
22- [1 , 10 ],
23- [1 , 20 ],
24- [1 , 30 ],
25- [1 , 40 ]
27+ [0 , 0 ],
28+ [0 , 10 ],
29+ [1 , 10 ],
30+ [1 , 20 ],
31+ [1 , 30 ],
32+ [1 , 40 ]
2633]
2734
2835y = [
29- [0 , 0 ],
30- [0 , 10 ],
31- [2 , 10 ],
32- [2 , 20 ],
33- [2 , 30 ],
34- [2 , 40 ]
36+ [0 , 0 ],
37+ [0 , 10 ],
38+ [2 , 10 ],
39+ [2 , 20 ],
40+ [2 , 30 ],
41+ [2 , 40 ]
3542]
3643
3744# Create SVR
@@ -42,11 +49,11 @@ regressor.fit(X, y)
4249pred_y = regressor.predict(X)
4350# Calc errors
4451errs = metrics.mean_squared_error(y, pred_y)
45- ```
46-
47- ## How to test
48-
49- ``` bash
50- cd < this repo>
51- python setup.py test
52- ```
52+ ```
53+
54+ ## How to test
55+
56+ ``` bash
57+ cd < this repo>
58+ python setup.py test
59+ ```
You can’t perform that action at this time.
0 commit comments