목록전체 글 (351)
printf("ho_tari\n");
#include #include "rational.h" int main() { Rational r1(3,5); Rational r2(2,7); std::cout
import os import numpy as np class Data(): def __init__(self, fname, ratio): f = open(fname) data = f.read() f.close() lines = data.split("\n") header = lines[0].split('.') lines = lines[1:] values = [line.split(",")[1:] for line in lines] self.float_data = np.array(values).astype('float32') self.data_length = self.float_data.shape[-1] self.ratio = ratio self.train_set_length = int(self.float_da..
from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras import models, layers, optimizers from tensorflow.keras.callbacks import EarlyStopping import matplotlib.pyplot as plt from tensorflow.keras.applications import VGG16 # set image generators train_dir='./datasets/cats_and_dogs_small/train/' test_dir='./datasets/cats_and_dogs_small/test/' validation_dir='./da..