View CoreMLViewController.swift
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
// | |
// ViewController.swift | |
// coreTesting | |
// | |
// Created by Evan Compton on 6/12/17. | |
// Copyright © 2017 Evan Compton. All rights reserved. | |
// | |
import UIKit | |
import CoreML |
View keras_sentiment.py
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
"""keras_sentiment.py | |
Very basic example showing how to create a coreML model from a Keras model | |
This model gives positive, 1, or negative, 0, sentiment based on a sentence | |
toeknized based on a predfined mapping. The amount of training data is too small to be useful | |
but the point of this script is to showcase the coreML tools abd very basic ML concepts. | |
This script is heavily based on the Keras IMDB example located here: | |
https://github.com/fchollet/keras/blob/master/examples/imdb_lstm.py | |
""" |
View PromiseChainGenerator.js
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
'use strict' | |
let promiseChain = () => { | |
return new Promise(function(resolve, reject) { | |
resolve(1); | |
}).then((val) => { | |
return new Promise(function(resolve, reject) { |