第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

GridSearchCV 給出“ __init__() 得到意外的關(guān)鍵字參數(shù) 'n_topics'”

GridSearchCV 給出“ __init__() 得到意外的關(guān)鍵字參數(shù) 'n_topics'”

陪伴而非守候 2023-06-27 16:45:52
我正在谷歌協(xié)作筆記本中運(yùn)行以下代碼。我已經(jīng)研究過這種類型的錯(cuò)誤,并確保將我的 sklearn 版本更新到 0.24.dev0 之前,但錯(cuò)誤仍然發(fā)生。有人可以幫忙嗎?search_params = {'n_components': [5, 10, 15, 20, 25], 'learning_decay': [.5, .7, .9]}lda = LatentDirichletAllocation(max_iter=5, learning_method='online', learning_offset=50.,random_state=0)model = GridSearchCV(lda, param_grid=search_params)model.fit(data_vectorized)GridSearchCV(cv=None, error_score='raise',       estimator=LatentDirichletAllocation(batch_size=128, doc_topic_prior=None,             evaluate_every=-1, learning_decay=0.7, learning_method=None,             learning_offset=10.0, max_doc_update_iter=100, max_iter=10,             mean_change_tol=0.001, n_components=10, n_jobs=1,             n_topics=None, perp_tol=0.1, random_state=None,             topic_word_prior=None, total_samples=1000000.0, verbose=0),       fit_params=None, iid=True, n_jobs=1,       param_grid={'n_topics': [5, 10, 15, 20, 25], 'learning_decay': [0.5, 0.7, 0.9]},       pre_dispatch='2*n_jobs', refit=True, return_train_score='warn',       scoring=None, verbose=0)
查看完整描述

1 回答

?
梵蒂岡之花

TA貢獻(xiàn)1900條經(jīng)驗(yàn) 獲得超5個(gè)贊

0.19版更改:n_topics更名為n_components

看起來所有版本 >=0.19 都保留此更改(我檢查了 0.23)


查看完整回答
反對(duì) 回復(fù) 2023-06-27
  • 1 回答
  • 0 關(guān)注
  • 252 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)