You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in deep-river. Is the project still being incremented?
Also, I am attempting to pass a module with specific params. A possible MWE would be as follows, however, it seems the Classifier class requires as input a non-instantiated nn.Module.
Am I missing something?
MLP code:
class MLP(nn.Module):
def __init__(self,
input_dim: int = 512,
hidden_dim: int = 256,
output_dim: int = 2):
super(MLP, self).__init__()
self.input_dim = input_dim
self.hidden_dim = hidden_dim
self.output_dim = output_dim
self.linear = nn.Linear(self.input_dim, self.hidden_dim)
self.activation = nn.ReLU()
self.linear_2 = nn.Linear(self.hidden_dim, self.output_dim)
def forward(self, x):
out = self.linear(x)
out = self.activation(out)
out = self.linear_2(out)
return out
Hi @jpbarddal,
this project is still being incremented!
You are right the classifier requires a non-instantiated nn.Module.
The reason for that is that in data streams the number of classes to predict or the number of features are might not be known at the beginning of the data stream. For that reason we initialize the model within the first event of the data stream.
However, to pass specific params to the Module, you can still do that by adding it to the Classifiers arguments:
Hi,
I am interested in deep-river. Is the project still being incremented?
Also, I am attempting to pass a module with specific params. A possible MWE would be as follows, however, it seems the Classifier class requires as input a non-instantiated nn.Module.
Am I missing something?
MLP code:
Pipeline construction:
The text was updated successfully, but these errors were encountered: