diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 21:33:26 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 21:33:26 +0200 |
| commit | be3b2bd56550b71a2ffb7eb1604c1b8c1d2dd4a2 (patch) | |
| tree | f8b77bcfd10187328b3fadc0de3e1eb6dfa08f8d /app/client/task/task.reducer.js | |
| parent | 3d836c372d7eff1e2b507888f1ff652a30187c54 (diff) | |
refactor some task stuff
Diffstat (limited to 'app/client/task/task.reducer.js')
| -rw-r--r-- | app/client/task/task.reducer.js | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/app/client/task/task.reducer.js b/app/client/task/task.reducer.js new file mode 100644 index 0000000..12e5184 --- /dev/null +++ b/app/client/task/task.reducer.js @@ -0,0 +1,80 @@ +import types from '../types' +import moment from 'moment' +let FileSaver = require('file-saver') + +const taskInitialState = { + loading: false, + error: null, + + currentTask: { + id: 1072, + activity: 'train', + module: 'pix2pix', + dataset: 'video/woods_final', + epoch: 87, + epochs: 100, + }, + tasks: [ + { + id: 1073, + activity: 'train', + module: 'samplernn', + dataset: 'bobby_brown_-_every_little_step', + epochs: 6, + }, + { + id: 1073, + activity: 'train', + module: 'pix2pix', + checkpoint: 'lyra_voice_layers', + dataset: 'audio/lyra_improv', + epochs: 30, + }, + { + id: 1073, + activity: 'train', + module: 'pix2pix', + checkpoint: 'lyra_melody_lines', + dataset: 'audio/lyra_improv', + epochs: 30, + }, + { + id: 1073, + activity: 'train', + module: 'pix2pix', + checkpoint: 'ensemble_chords', + dataset: 'audio/lyra_improv', + epochs: 30, + }, + { + id: 1073, + activity: 'generate', + module: 'samplernn', + dataset: 'coccoglass3', + opt: { time: 5, count: 6 }, + }, + { + id: 1073, + activity: 'train', + module: 'pix2pix', + dataset: 'video/woods_green', + epochs: 100, + }, + { + id: 1073, + activity: 'train', + module: 'samplernn', + dataset: 'bobby_brown_-_every_little_step', + epochs: 6, + }, + ], +} + +const taskReducer = (state = taskInitialState, action) => { + switch(action.type) { + default: + return state + } +} + +export default taskReducer |
