質問編集履歴
2
sklearnの問題と勘違いしていました、pygamに問題あったようなので。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
### 前提
|
2
|
-
pythonにて
|
2
|
+
pythonにて一般化加法モデルを走らせようとしたら、題記のエラーが出て動かなくなりました。
|
3
|
-
|
3
|
+
2023年1月20日に conda update --allとした後に起こっております。
|
4
4
|
別仮想環境 python 3.9.13では問題なく動きますが。
|
5
|
-
昨日updateした仮想環境 python 3.10.9
|
5
|
+
昨日updateした仮想環境 python 3.10.9 で動かない。
|
6
|
+
pygamのversionは どちらの環境も 0.8.0
|
6
7
|
|
7
8
|
### 実現したいこと
|
8
9
|
エラー出ないで、プログラム走らせたい。
|
@@ -10,13 +11,31 @@
|
|
10
11
|
### 発生している問題・エラーメッセージ
|
11
12
|
|
12
13
|
```
|
14
|
+
File "C:\MDP3\AIA_regression.py", line 22, in <module>
|
15
|
+
from pygam import LinearGAM,s,f #一般化加法モデル for Generalized Additive Model Regressor
|
16
|
+
|
17
|
+
File "C:\Users\5ta9n\anaconda3\envs\oono_latest\lib\site-packages\pygam\__init__.py", line 7, in <module>
|
18
|
+
from pygam.pygam import GAM
|
19
|
+
|
20
|
+
File "C:\Users\5ta9n\anaconda3\envs\oono_latest\lib\site-packages\pygam\pygam.py", line 7, in <module>
|
21
|
+
from progressbar import ProgressBar
|
22
|
+
|
23
|
+
File "C:\Users\5ta9n\anaconda3\envs\oono_latest\lib\site-packages\progressbar\__init__.py", line 4, in <module>
|
24
|
+
from .shortcuts import progressbar
|
25
|
+
|
26
|
+
File "C:\Users\5ta9n\anaconda3\envs\oono_latest\lib\site-packages\progressbar\shortcuts.py", line 1, in <module>
|
27
|
+
from . import bar
|
28
|
+
|
29
|
+
File "C:\Users\5ta9n\anaconda3\envs\oono_latest\lib\site-packages\progressbar\bar.py", line 50, in <module>
|
30
|
+
class ProgressBarBase(collections.Iterable, ProgressBarMixinBase):
|
31
|
+
|
13
|
-
AttributeError: module 'collections' has no attribute 'Iterable'
|
32
|
+
AttributeError: module 'collections' has no attribute 'Iterable'
|
14
33
|
```
|
15
34
|
|
16
35
|
### 該当のソースコード
|
17
36
|
|
18
37
|
```ここに言語名を入力
|
19
|
-
|
38
|
+
from pygam import LinearGAM,s,f
|
20
39
|
```
|
21
40
|
|
22
41
|
### 試したこと
|
1
実現したいこと追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
昨日updateした仮想環境 python 3.10.9
|
6
6
|
|
7
7
|
### 実現したいこと
|
8
|
+
エラー出ないで、プログラム走らせたい。
|
8
9
|
|
9
10
|
### 発生している問題・エラーメッセージ
|
10
11
|
|