如何解决将python 3.6升级到3.7并将scikit-learn 0.19升级到0.23时PCA的收敛变化
我将scikit-learn的经典PCA用于LogisticRegression的分类模型,该模型具有22,000行* 45 000列的数据帧,数据已缩放,但是当我将python 3.6升级到3.7和scikit-时,两者都存在收敛问题学习0.19至0.23。
MatchFilter.Orientation = xlPageField
我的数据框中没有NaN,但这可能是内存问题。
Sub Filter_Test()
Dim ws1 As Worksheet
Set ws1 = Sheets("Order_Groupings")
'The match list is the list of unique Match IDs to filter through,pasting each in the filter
Dim ws2 As Worksheet
Set ws2 = Sheets("Match_List")
'Here we will paste the results from each optimizer run
Dim ws3 As Worksheet
Set ws3 = Sheets("Optimizer_Results")
Dim pt As PivotTable
Set pt = ws1.PivotTables("Order_Groupings")
Dim FilterID As String
Dim MatchFilter As PivotField
Set MatchFilter = pt.PivotFields("Match_ID")
Dim numIDs As Integer
'This is the number of different match IDs
'Match count is set to J4 right now in the Match List tab
numIDs = ws2.Range("match_count").Value
'For loop to cycle through each Match ID
For i = 1 To numIDs
FilterID = ws2.Range("A4").Offset(i,0).Value
'Trying to set the MatchFilter to the new value in FilterID
With MatchFilter
.ClearAllFilters
.CurrentPageName = FilterID
End With
Next i
End Sub
我什么都没改变,我通过更改一些超参数解决了这个问题,但是我想知道为什么会出现,我已经测试了当我回滚到旧版本并收敛错误“消失”的时候。
我不知道为什么,现在是否会出现收敛警告,或者是以其他方式或其他原因进行计算?
感谢您的建议:)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。