摘要: def smooth_curve(points, factor = 0.9): smoothed_points = [] for point in points: if smoothed_points: previous = smoothed_points[-1] smoothed_points.append(pre... 阅读全文
posted @ 2019-01-03 23:23 WWBlog 阅读(568) 评论(0) 推荐(0) 编辑
摘要: """K折验证""" #K validation import numpy as np k = 4 num_val_samples = len(train_data) // k num_epochs = 100 all_scores = [] for i in range(k): print("processing fold #", i) val_data = train... 阅读全文
posted @ 2019-01-03 23:21 WWBlog 阅读(349) 评论(0) 推荐(0) 编辑