腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7034)
视频
沙龙
1
回答
在带有嵌套估计器的管道中使用GridSearchCV
python
、
scikit-learn
、
pipeline
、
random-forest
、
gridsearchcv
我尝试使用Pipeline来构建我的模型,如下所示:我想用一个随机的forst分类器预测多个输出。因为管道只允许最后一步作为分类器,所以我嵌套了我的管道。这在没有GridSearch的情况下工作得很好。 pipeline = Pipeline([('tfidf', TfidfTransformer()),]) 现在我尝试将多个参数传递给我的RF分类
浏览 25
提问于2020-09-27
得票数 1
回答已采纳
1
回答
如何使用Python代码(而不是命令行界面)获取TensorFlow估计器版本
python
、
tensorflow
、
version
、
tensorflow-estimator
、
tf.keras
__version__); #print("TensorFlow
Estimator
version:",tf.
estimator
.__version__); 但是,tf.
estimator
没有__version__属性。有没有其他方法可以在TensorFlow代码中获得Python版本?
浏览 13
提问于2019-05-07
得票数 0
回答已采纳
1
回答
用于理解数组操作的If语句
python
、
numpy
、
list-comprehension
我试图利用numpy优化来避免嵌套循环:pred = sum((
estimator
.predict(X) == classes).T * w1 + (
estimator
.predictself.
estimator
_weights_pos,self.
estimator
_weights_pos = [1, 2] self.<em
浏览 3
提问于2020-03-06
得票数 1
2
回答
将google ml示例从回归转换为分类和添加键?
tensorflow
、
google-cloud-ml
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/
estimator
/python/
estimator
/extenders.py", line 87, in new_model_fn spec =
estimator
.model_fn(features, labels, mode, config) File "/us
浏览 0
提问于2018-01-31
得票数 6
回答已采纳
1
回答
如何在使用tf.
estimator
.EstimatorSpec时检查每个时期后的评估AUC值?
tensorflow
、
machine-learning
、
deep-learning
我使用tf.
estimator
.EstimatorSpec定义了我的模型。我知道它有训练、评估和预测模式。但我想在每个时期之后检查一些指标得分,例如auc。这个API像keras一样支持它吗?
浏览 51
提问于2019-05-16
得票数 2
1
回答
Python numpy.random.normal
python
、
numpy
and the biased_
estimator
biased_
estimator
= np.var(x, ddof=0)print ("Unbiased_
estimator
: ",unbiased_
estimator
) a = np.random.r
浏览 0
提问于2016-12-06
得票数 5
1
回答
如何使用自定义模型在批量预测中获得“键”?
python
、
tensorflow
、
google-cloud-ml
如何调整我的自定义模型(tf.contrib.learn.
Estimator
())以获得预测中的“键”?
浏览 0
提问于2018-03-28
得票数 1
回答已采纳
2
回答
函数生成optuna网格,提供了一个sklearn管道。
python
、
scikit-learn
、
hyperparameters
、
optuna
返回sklearn特定的param网格(即字典)似乎更直截了当(duh);这就是我到目前为止得到的结果: '
estimator
__penalty': ['l1
浏览 2
提问于2021-11-23
得票数 3
1
回答
估计器的参数min_impurity_decrease无效
python
、
machine-learning
、
scikit-learn
、
classification
、
ensemble-learning
DecisionTreeClassifier(max_depth=15)BC = BaggingClassifier(base_
estimator
=DTC) "n_estimators": [10, 20, 100],max_features': [1.0, 2.0, 3.0], "min_impurit
浏览 116
提问于2021-11-12
得票数 0
1
回答
谁应该使用tf.
estimator
.train_and_evaluate及早停止评估损失?
python
、
tensorflow
、
deep-learning
、
tensorflow-estimator
我使用了Tensorflow估计器,并显式地使用了tf.
estimator
.train_and_evaluate()方法。有一个早期停止挂钩的训练,即tf.contrib.
estimator
.stop_if_no_decrease_hook,但我确实有一个问题,训练损失是太紧张,不能用在早期停止。有没有人知道如何在评估损失的基础上及早停止使用tf.
estimator
?
浏览 0
提问于2020-03-14
得票数 4
1
回答
如何将指标添加到多头TensorFlow估计器?
python
、
tensorflow
、
machine-learning
、
metrics
现在的问题是,tf.
estimator
.add_metrics的metric_fn参数不接受任何额外的参数来支持动态确定或构造的指标。 如何生成具有多个头部和每个头部的自定义指标的估计器?
浏览 20
提问于2020-01-24
得票数 0
1
回答
GridSearchCV for MLPClassifier不返回best_
estimator
_
scikit-learn
': [1e-2, 1e-3, 1e-4, 1e-5, 1e-6], } param_grid=param_grid, n_jobs=-1) self.
estimator
浏览 0
提问于2017-09-16
得票数 1
回答已采纳
1
回答
Scikit learn SelectFromModel -实际获取潜在预测者的特征重要性得分
python
、
machine-learning
、
scikit-learn
、
feature-selection
我正在尝试估计我手头的分类任务的特征重要性。对我来说,重要的是获得代表每个特征重要性的具体数字,而不仅仅是“挑选最重要的X个特征”。我想知道,有没有办法从SelectFromModel获得每个功能的特定重要性分数,而不仅仅是获得最重要功能的列表?
浏览 8
提问于2017-07-26
得票数 2
回答已采纳
1
回答
估计器RegressorChain(base_
estimator
=XGBRegressor )的参数learning_rate无效
python-3.x
、
scikit-learn
、
hyperparameters
、
chained
、
xgbregressor
我正尝试将RandomizedSearchCV应用于RegressorChain XGBoost模型,但遇到错误:参数learning_rate对于
estimator
无效(base_
estimator
gblinear"] chain = RegressorChain(base_
estimator
=clf, order=[0, 1, 2, 3, 4,5]) # Setup Randomiz
浏览 180
提问于2021-08-20
得票数 0
回答已采纳
1
回答
GridSearchCV中的多个估计器(Sklearn)
python
、
scikit-learn
、
grid-search
best_
estimator
_是GridSearchCV对象的一个属性。所以这是我的问题。如何向GSCV对象传递多个估计器?
浏览 2
提问于2018-08-01
得票数 15
回答已采纳
1
回答
决策树回归器中网格交叉验证问题
python
、
python-3.x
、
machine-learning
、
scikit-learn
、
regression
= time.time()问题是,我认为这个问题: ('tree', MultiOutputRegressor(
estimator
Check the list of available parameters with
浏览 24
提问于2021-02-25
得票数 0
回答已采纳
2
回答
tf.
estimator
.
Estimator
.train()是否维护input_fn状态?
tensorflow
我已经像代码一样使用了我自己的估计/实验一年多了,但我想最终加入Dataset+
Estimator
潮流。我想做以下几件事:
estimator
.train(train_input_fn, steps=1000)
estimator
.evaluate(validation_input_fn这就是人们使用
Estimator
进行训练的方式吗?
浏览 2
提问于2017-10-25
得票数 3
回答已采纳
1
回答
如何用MLPClassifier实现gridsearchCV?
python
、
neural-network
、
scikit-learn
、
cross-validation
、
hyperparameter
alpha': [10.0 ** -np.arange(1, 7)],} = gridSearchCV(
estimator
浏览 0
提问于2017-06-16
得票数 6
回答已采纳
1
回答
在等待实时预测输入时,将tensorflow估计器保存在内存中
tensorflow
、
tensorflow-datasets
在代码的开头,我实例化了估计器: model_fn=model_fn,然后,在循环中,每次我获得足够的新数据来进行预测时: predict_input_fn = tf.
estimator
.inputs.numpy_input_fn{"x": np.array([sample.norma
浏览 1
提问于2018-04-22
得票数 1
回答已采纳
1
回答
使用Google Cloud Platform和AI平台提供预测服务
google-cloud-platform
、
google-cloud-ml
我在tensorflow的帮助下训练了一个AI模型,需要使用Google AI平台来提供预测服务。 现在AI平台指定模型需要是特定的'SavedModel‘格式,以便我将模型上传到云并提供预测。 如何将模型转换为指定的'SavedModel‘格式? 另外,有没有端到端的教程可以帮助我做同样的事情?
浏览 22
提问于2019-09-06
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
用TensorFlow Estimator实现文本分类
TensorFlow的高阶接口Estimator的使用(1)
通过深度神经网络再识 Estimator
Kmeans算法
谷歌教你学 AI-第三讲简单易懂的估算器
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券