Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kulbach committed Jun 28, 2022
1 parent 2780e64 commit d625ca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 5 additions & 1 deletion river_torch/classification/nn_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def build_torch_dynamic_mlp_classifier(n_features, n_classes=2):

def build_torch_lstm_classifier(n_features, hidden_size):
net = nn.Sequential(
SequentialLSTM(input_size=n_features, hidden_size=hidden_size, num_layers=1),
SequentialLSTM(
input_size=n_features,
hidden_size=hidden_size,
num_layers=1
),
nn.Linear(hidden_size, 10),
nn.ReLU(),
nn.Linear(10, 1),
Expand Down
8 changes: 0 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import io
import os
import subprocess
import sys

import setuptools

try:
from numpy import get_include
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", "numpy"])
from numpy import get_include

# Package meta-data.
NAME = "river_torch"
DESCRIPTION = "Online Deep Learning for river"
Expand Down

0 comments on commit d625ca0

Please sign in to comment.