-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* WIP #1808 Add generated files for TrainKeras * WIP Add python code for TrainKeras editor (plotting losses) * Use plotly matplotlib backend, fix example model * Add dashboard (and svelte build commands) * Add rollup config for svelte * Add fn parameter config generation * Fix update arch. Add loss config * Add support for reductions in loss fns * Remove learning rate (included as optimizer option) * Remove lr (optimizer config instead) * Update plotly path * Add getArchitectureCode to widget * debugging code * Add generated architecture code to the model * Set loss, optimizer and update plots in real time * Add Train button * add help links for loss, optimizer * Use validation when training model * Add training data field. Ensure correct order when killing current task * Add training data selector * Add sections for config * Add validation loss to plots * Show trained models * Prompt storage info on save * Update model state on upload * Fix plot updates, python friendly artifact names * Return storage config info * Add rollup deps * Use deepforge serializer for models * Update training button. Upload artifact on save * Use JSON importer for saving snapshot * Add JSON importer * Fix model saving * Show info on click for errors * Update JSON Importer * Don't pass jquery to initialize * Update pipeline seed to have TrainKeras operation... * Use correct filepath when saving artifact * Fix svelte warnings * Add build files to codeclimate ignore * Add more ignore paths * Clean up the code (treat artifacts as the main territory) * Refactor line collector and add tests * Fixed error with getObjectDescriptor * Remove line collector; clear save errors
- Loading branch information
Showing
26 changed files
with
4,039 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/*globals define*/ | ||
define([], function() { | ||
class LineCollector { | ||
constructor() { | ||
this.currentLine = ''; | ||
this.handler = null; | ||
} | ||
|
||
on(fn) { | ||
this.handler = fn; | ||
} | ||
|
||
receive(data) { | ||
const text = data.toString(); | ||
const newLineIndex = text.indexOf('\n'); | ||
let fragment; | ||
if (newLineIndex > -1) { | ||
const line = this.currentLine + text.substring(0, newLineIndex); | ||
this.handler(line); | ||
fragment = text.substring(newLineIndex + 1); | ||
this.currentLine = ''; | ||
} else { | ||
fragment = text; | ||
} | ||
this.currentLine += fragment; | ||
} | ||
|
||
flush() { | ||
if (this.currentLine) { | ||
this.handler(this.currentLine); | ||
this.currentLine = ''; | ||
} | ||
} | ||
} | ||
|
||
return LineCollector; | ||
}); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.