if __name__ == '__main__': os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # you can modify your file path file_train = './data/train.csv' file_test = './data/test.csv' embed_dim = 8 read_part = True sample_num = 6000000 test_si
时间: 2024-04-11 22:29:27 浏览: 121
environ.rar_Linux/Unix编程_Unix_Linux_
ze = 1000000 # you can modify your model path model_path = './model' # parameters for training batch_size = 1024 epoch = 5 learning_rate = 0.001 # you can modify the number of hidden units hidden_units = [256, 128] # load data train_X, train_y, test_X, test_y, feature_columns, target_column = load_data(file_train, file_test, read_part, sample_num) # build model model = build_model(embed_dim, feature_columns, target_column, hidden_units) # train model train_model(model, train_X, train_y, test_X, test_y, batch_size, epoch, learning_rate) # save model model.save(model_path)
阅读全文