Update install requirements and readme
This commit is contained in:
parent
cd652508b9
commit
9ccbec52f7
@ -29,7 +29,11 @@ provided by PyTorch.
|
|||||||
|
|
||||||
ProtoTorch can be installed using `pip`.
|
ProtoTorch can be installed using `pip`.
|
||||||
```bash
|
```bash
|
||||||
pip install prototorch
|
pip install -U prototorch
|
||||||
|
```
|
||||||
|
To also install the extras, use
|
||||||
|
```bash
|
||||||
|
pip install -U prototorch[datasets,examples,tests]
|
||||||
```
|
```
|
||||||
|
|
||||||
To install the bleeding-edge features and improvements:
|
To install the bleeding-edge features and improvements:
|
||||||
|
@ -12,7 +12,7 @@ from prototorch.modules.prototypes import Prototypes1D
|
|||||||
|
|
||||||
# Prepare and preprocess the data
|
# Prepare and preprocess the data
|
||||||
scaler = StandardScaler()
|
scaler = StandardScaler()
|
||||||
x_train, y_train = load_iris(True)
|
x_train, y_train = load_iris(return_X_y=True)
|
||||||
x_train = x_train[:, [0, 2]]
|
x_train = x_train[:, [0, 2]]
|
||||||
scaler.fit(x_train)
|
scaler.fit(x_train)
|
||||||
x_train = scaler.transform(x_train)
|
x_train = scaler.transform(x_train)
|
||||||
|
Loading…
Reference in New Issue
Block a user