skaftenicki / pl_crossvalidate Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hey, I was just thinking about implementing k-fold support and saw this awesome library! Great work! Just wanted to drop you a note that I noticed that it currently doesn't work with PyTorch Lightning >= 1.6.0. It works fine with e.g., 1.5.10 but in 1.6.0 it throws an error when calling trainer.cross_validate()
:
It happens in both cases whether you use a datamodule
or train_dataloader
.
I'm having trouble installing pl_cross with poetry, I've open a question in StackOverflow describing the problem.
I noticed that there are also issues with the create_ensemble
method complaining that the model
argument is missing. I tried it with all possible settings providing a model
only, providing checkpoints only, and providing a model and checkpoints. This issue occurs with PyTorch Lightning 1.5.10. I put together a self-contained example notebook here (https://github.com/rasbt/deeplearning-models/blob/master/pytorch-lightning_ipynb/kfold/kfold-light-cnn-mnist.ipynb) that reproduces the error if you uncomment the create_model
code at the bottom.
Hi, thanks a lot for the pl_crossvalidate! I am trying to use but I keep running into some errors. The error I get is TypeError: An invalid dataloader was returned from
KFoldDataModule.val_dataloader(). Found None.
with trainer.cross_validate(model, train_dataloader=ds_loader)
.
The reason I go with train_dataloader is because I have a very small dataset and I cannot afford to split into train and val and and also num_folds. Do I need to have a val_dataloader in this case?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.