質問編集履歴
6
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
PythonのDataFrame型からのcorpusやdictionaryの作成について(トピックモデルのクラスタリング)
|
1
|
+
Pythonのテキスト情報でないDataFrame型からのcorpusやdictionaryの作成について(トピックモデルのクラスタリング)
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
文章を前提としたデータからのそれぞれを作成するライブラリーの文献しか見当たらないため、どのように上記のファイル
|
33
|
+
文章などのテキスト情報を前提としたデータからのそれぞれを作成するライブラリーの文献しか見当たらないため、どのように上記のファイル
|
34
34
|
|
35
35
|
(初心者なのですが、DataFrame型と言うのでしょうか?)
|
36
36
|
|
5
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
PythonのDataFrame型からのcorpusやdictionaryの作成について(
|
1
|
+
PythonのDataFrame型からのcorpusやdictionaryの作成について(トピックモデルのクラスタリング)
|
test
CHANGED
File without changes
|
4
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
DataFrame型からのcorpusやdictionaryの作成について(LDA)
|
1
|
+
PythonのDataFrame型からのcorpusやdictionaryの作成について(LDA)
|
test
CHANGED
File without changes
|
3
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
corpusやdictionaryの作成について(LDA)
|
1
|
+
DataFrame型からのcorpusやdictionaryの作成について(LDA)
|
test
CHANGED
File without changes
|
2
わかりやすいコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
#縦型変換
|
44
44
|
|
45
|
-
vertical = pd.melt(
|
45
|
+
vertical = pd.melt( data,id_vars=['user_id'],value_vars=ACTION_LIST)
|
46
46
|
|
47
47
|
|
48
48
|
|
1
CSVファイルの取り込み手法も追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,14 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
+
また、CSVファイルは以下のように取り込んでいます。
|
56
|
+
|
57
|
+
```python
|
58
|
+
|
59
|
+
data = pd.read_csv(filepath_or_buffer="data.csv", encoding="ms932", sep=",")
|
60
|
+
|
61
|
+
```
|
62
|
+
|
55
63
|
######追伸
|
56
64
|
|
57
65
|
時系列要素も入れて一定期間のユーザー行動をクラスタリングしたいのですが(サブスクリプションサービスのユーザー行動パターンを分析するような想定で)、より良いクラスタリング手法があれば教えてください。
|