Comments (1)
Hey, I started implementing it a while ago, but haven't finished due to time constraints. It's definitely something on my roadmap.
How this can be achieved?
The idea is to allow the data
function to return a tuple of generators instead of loaded datasets:
import itertools
def data_fn(a=1, b=10):
def mygen(a):
for i in range(a):
yield i
train = itertools.cycle(mygen(a))
train.steps_per_epoch = a # pass the number of samples per epoch
valid = itertools.cycle(mygen(b))
valid.steps_per_epoch = b
return train, valid
One would need to update the code at all the positions where model.predict
, model.evaluate
gets called with a conditional statement checking whether we are dealing with an iterator or a full dataset:
- https://github.com/Avsecz/keras-hyperopt/blob/master/kopt/hyopt.py#L355-L361
- https://github.com/Avsecz/keras-hyperopt/blob/master/kopt/hyopt.py#L391-L398
- https://github.com/Avsecz/keras-hyperopt/blob/master/kopt/hyopt.py#L46-L52
Feel free to send a PR in case you'd like to do it.
from kopt.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kopt.