Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function run() {
- Promise.all([
- encodeData(comments),
- encodeData(comment_testing)
- ])
- .then(data => {
- const {
- 0: training_data,
- 1: testing_data,
- } = data;
- model.fit(training_data, outputData, { epochs: 200 })
- .then(history => {
- model.predict(testing_data).print();
- });
- })
- .catch(err => console.log('Prom Err:', err));
- };
- // Call function
- run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement