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
import tensorflow as tf | |
model = tf.keras.models.Sequential([ | |
tf.keras.layers.Conv2D(16, (3,3), activation='relu', input_shape=(300, 300, 3)), | |
tf.keras.layers.MaxPooling2D(2, 2), | |
tf.keras.layers.Conv2D(32, (3,3), activation='relu'), | |
tf.keras.layers.MaxPooling2D(2,2), | |
tf.keras.layers.Conv2D(64, (3,3), activation='relu'), | |
tf.keras.layers.MaxPooling2D(2,2), | |
tf.keras.layers.Conv2D(64, (3,3), activation='relu'), |
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
import tensorflow as tf | |
print(tf.__version__) | |
class myCallback(tf.keras.callbacks.Callback): | |
def on_epoch_end(self, epoch, logs={}): | |
if(logs.get('acc')>=0.90): | |
print("\nReached 90% accuracy so cancelling training!") | |
self.model.stop_training = True | |
#mnist = tf.keras.datasets.fashion_mnist |
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
public class JavaRunner02 { | |
public static void main(String[] args) { | |
/* 입력부 */ | |
int firstNumber = 2; | |
int secondNumber = 3; | |
/* 출력변수 */ |
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
public class JavaRunner01 { | |
public static void main(String[] args) { | |
/* 입력부 */ | |
int firstNumber = 2; | |
/* 출력변수 */ | |
String prtStr = null; |
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
public class JavaRunner { | |
public static void main(String[] args) { | |
/* 입력부 */ | |
// 현재는 내부에 있으나, 향후 사용자 입력을 받을 예정 | |
int firstNumber = 2; | |
int secondNumber = 3; | |
/* 연산부 */ |