全然理解出来てなかったので調べてみた。
function f () {
// Class
}
#!/bin/sh | |
# settings ========== | |
# src file name | |
fileNamePrefix="ScreenShotFileNameFor5.5inch" | |
offsetFor3_5=20 | |
# dest directory name |
/* | |
* Easing.pde - brings Robert Penner's easing functions into Processing | |
* (c) 2015 cocopon. | |
* | |
* See the following to learn more about these famous functions: | |
* http://www.robertpenner.com/easing/ | |
* | |
* License: | |
* http://www.robertpenner.com/easing_terms_of_use.html | |
*/ |
// This enables using all available UIViewAnimationOptions enum values as UIViewAnimationOptions in a Swifty way, | |
// by brute-force bridging all values with an explicit extension to UIViewKeyframeAnimationOptions. | |
// | |
// Thus, code like | |
// | |
// let o1 : UIViewKeyframeAnimationOptions = .CalculationModeLinear | |
// let o2 : UIViewAnimationOptions = .CurveLinear | |
// let os : UIViewKeyframeAnimationOptions = [o1, UIViewKeyframeAnimationOptions(o2.rawValue)] | |
// | |
// becomes: |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers.core import Activation, Dense | |
training_data = np.array([[0,0],[0,1],[1,0],[1,1]], "float32") | |
target_data = np.array([[0],[1],[1],[0]], "float32") | |
model = Sequential() | |
model.add(Dense(32, input_dim=2, activation='relu')) | |
model.add(Dense(1, activation='sigmoid')) |