我一直在尝试使用 Python 中的 Prince 包来执行多重对应分析。我在网上读到有人在使用这个包时遇到了困难,但我遇到的错误与 Stack Overflow 上的其他帖子不同。
我正在使用蟒蛇。请参阅下面的所有计算机程序规格
import prince
pca = prince.PCA(n_components=2,n_iter=3,rescale_with_mean=True,
rescale_with_std=True,copy=True,check_input=True,engine='auto',
random_state=42)
当我这样做时,我得到了错误
TypeError: __init__() got an unexpected keyword argument 'n_iter'
蟒蛇:3.8.5
蟒蛇:7.19.0
jupyter核心:4.6.3
jupyter笔记本:6.1.4
qtconsole:4.7.7
ipython:7.19.0
ipykernel:5.3.4
jupyter 客户端:6.1.7
jupyter 实验室:2.2.6
NB转换:6.0.7
ipywidgets:7.5.1
NB格式:5.0.8
特质:5.0.5
谁能提供有关如何在 Python 中执行 MCA 的建议?
我将不胜感激任何帮助。我也尝试过 mca 包,但无济于事。我的最终目标是创建一个 MCA 情节。感谢您的时间和帮助。