摘要:
class sklearn.base.BaseEstimator:为所有的estimators提供基类 方法: 获取这个估计器的参数 Parameters: deep : boolean, optional True,将返回该estimator的参数,并包含作为estimator的子对象. Retu 阅读全文
posted @ 2018-09-16 16:12 wzd321 阅读(2303) 评论(0) 推荐(0)
|
|
|
|
摘要:
class sklearn.base.BaseEstimator:为所有的estimators提供基类 方法: 获取这个估计器的参数 Parameters: deep : boolean, optional True,将返回该estimator的参数,并包含作为estimator的子对象. Retu 阅读全文
posted @ 2018-09-16 16:12 wzd321 阅读(2303) 评论(0) 推荐(0)
摘要:
import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(4,3),columns=list("ABC"),index=[1,2,3,4]) #apply函数对DataFrame和Series的一列做整体运算 df.apply(lambda x:x.max()-x.min()) # =========... 阅读全文
posted @ 2018-09-16 15:47 wzd321 阅读(1027) 评论(0) 推荐(0)
摘要:
ctrl+1:注释/反注释 ctrl+4/5:注释/反注释 tab/ shift+tab:缩进/反缩进 F5:全运行 F9:单行运行 F11:全屏 ctrl+I:显示帮助 阅读全文
posted @ 2018-09-16 11:16 wzd321 阅读(126) 评论(0) 推荐(0)
摘要:
我们可以通过包装器将Sequential模型(仅有一个输入)作为Scikit-Learn工作流的一部分,相关的包装器定义在keras.wrappers.scikit_learn.py中: 这里有两个包装器可用: 分类器接口:keras.wrappers.scikit_learn.KerasClass 阅读全文
posted @ 2018-09-16 11:09 wzd321 阅读(293) 评论(0) 推荐(0) |
|