Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Pytorch DataLoader #6

Open
francescamanni1989 opened this issue Jul 12, 2021 · 7 comments
Open

Support for Pytorch DataLoader #6

francescamanni1989 opened this issue Jul 12, 2021 · 7 comments

Comments

@francescamanni1989
Copy link

Is it working only with LibSVMdata?

@sbadirli
Copy link
Owner

sbadirli commented Jul 12, 2021 via email

@francescamanni1989
Copy link
Author

when passing DataLoader like so:
image

I am getting the following error
image

I fixed previous error and now don't know which is the problem!

@sbadirli
Copy link
Owner

sbadirli commented Jul 12, 2021 via email

@francescamanni1989
Copy link
Author

Many thanks for your quick reply and support. When loading with your parameters for the MNIST usecase"

num_nets = 40
batch_size = 2048
#lr = [1.]
#L2 = [0.0001]
feat_d = 28
hidden_d = 16
sparse = False
epochs_per_stage = 1
correct_epoch=1
loss_models = torch.zeros((num_nets, 3))
model_order ='first'
all_ensm_losses = []
all_ensm_losses_te = []
all_mdl_losses = []
dynamic_br = []

boost_rate=1.
train_label=train_tensor_y.numpy()
c0 = np.mean(train_label)
net_ensemble = DynamicNet(c0, boost_rate)
I got the following. I am basically trying to load MNIST with train_loader but it is not working.

image

@sbadirli
Copy link
Owner

sbadirli commented Jul 12, 2021 via email

@sbadirli
Copy link
Owner

sbadirli commented Jul 12, 2021 via email

@francescamanni1989
Copy link
Author

Thank you very much for your availability!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants