Skip to content

Commit a00b109

Browse files
committed
[docs] Adjust indent and Add "Install with Pipenv" section
1 parent 603a294 commit a00b109

File tree

1 file changed

+33
-26
lines changed

1 file changed

+33
-26
lines changed

README.md

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,44 @@
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

34
Support 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
1623
import multi_svr
1724
from sklearn import metrics
1825

1926
X = [
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

2835
y = [
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)
4249
pred_y = regressor.predict(X)
4350
# Calc errors
4451
errs = 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+
```

0 commit comments

Comments
 (0)