Pra UTS: Klasifikasi Teks Berita dengan LDA Feature Extraction dan SVM#

Tugas ini bertujuan untuk melakukan Klasifikasi Teks Berita menggunakan:

  • LDA (Latent Dirichlet Allocation) sebagai metode ekstraksi fitur

  • SVM (Support Vector Machine) sebagai algoritma klasifikasi

Tahapan Pengerjaan:#

  1. Persiapan Data Berlabel - Load dan split data training/testing

  2. Pra-pemrosesan Teks - Data sudah di-preprocessing (kolom stemming_indo)

  3. Ekstraksi Fitur dengan LDA - Transform teks menjadi distribusi topik

  4. Pelatihan Model SVM - Latih classifier dengan fitur LDA

  5. Evaluasi Hasil - Ukur performa dan bandingkan dengan TF-IDF

1. Import Libraries#

# Import libraries untuk data manipulation
import pandas as pd
import numpy as np
import warnings
warnings.filterwarnings('ignore')

# Import libraries untuk visualisasi
import matplotlib.pyplot as plt
import seaborn as sns

# Import libraries untuk text processing
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.model_selection import train_test_split

# Import LDA
from sklearn.decomposition import LatentDirichletAllocation

# Import SVM dan metrics
from sklearn.svm import SVC
from sklearn.metrics import (accuracy_score, precision_score, recall_score, 
                            f1_score, classification_report, confusion_matrix)

# Import untuk grid search
from sklearn.model_selection import GridSearchCV

print("✓ Libraries berhasil di-import")
✓ Libraries berhasil di-import

2. Load dan Eksplorasi Data#

# Load dataset
df = pd.read_csv('datasets/df_preprocessing.csv')

# Tampilkan info dataset
print("="*50)
print("INFORMASI DATASET")
print("="*50)
print(f"Jumlah data: {len(df)}")
print(f"Jumlah kolom: {len(df.columns)}")
print(f"\nKolom-kolom:")
print(df.columns.tolist())

# Tampilkan beberapa baris pertama
print("\n" + "="*50)
print("5 BARIS PERTAMA DATA")
print("="*50)
df.head()
==================================================
INFORMASI DATASET
==================================================
Jumlah data: 1200
Jumlah kolom: 8

Kolom-kolom:
['Isi Berita', 'lwr_indo', 'clean_sw_indo', 'clean_stb_indo', 'clean_typo_indo', 'stemming_indo', 'tokenize_indo', 'Kategori Berita']

==================================================
5 BARIS PERTAMA DATA
==================================================
Isi Berita lwr_indo clean_sw_indo clean_stb_indo clean_typo_indo stemming_indo tokenize_indo Kategori Berita
0 KOMPAS.com - Menteri Pemuda dan Olahraga Erick... kompas.com - menteri pemuda dan olahraga erick... kompas.com - menteri pemuda olahraga erick tho... kompas com menteri pemuda olahraga erick tho... kompas com menteri pemuda olahraga erick thohi... kompas com menteri pemuda olahraga erick thohi... ['kompas', 'com', 'menteri', 'pemuda', 'olahra... BOLA
1 KOMPAS.com - Manajer Chelsea, Enzo Maresca men... kompas.com - manajer chelsea, enzo maresca men... kompas.com - manajer chelsea, enzo maresca men... kompas com manajer chelsea enzo maresca meng... kompas com manajer chelsea enzo maresca mengan... kompas com manajer chelsea enzo maresca anggap... ['kompas', 'com', 'manajer', 'chelsea', 'enzo'... BOLA
2 KOMPAS.com - Pelatih Liverpool, Arne Slot, men... kompas.com - pelatih liverpool, arne slot, men... kompas.com - pelatih liverpool, arne slot, men... kompas com pelatih liverpool arne slot menga... kompas com pelatih liverpool arne slot mengaku... kompas com latih liverpool arne slot aku cryst... ['kompas', 'com', 'latih', 'liverpool', 'arne'... BOLA
3 KOMPAS.com - Hasil terbaru pekan kelima Liga I... kompas.com - hasil terbaru pekan kelima liga i... kompas.com - hasil terbaru pekan liga italia 2... kompas com hasil terbaru pekan liga italia ... kompas com hasil terbaru pekan liga italia per... kompas com hasil baru pekan liga italia beda n... ['kompas', 'com', 'hasil', 'baru', 'pekan', 'l... BOLA
4 KOMPAS.com - Menteri Pemuda dan Olahraga Repub... kompas.com - menteri pemuda dan olahraga repub... kompas.com - menteri pemuda olahraga republik ... kompas com menteri pemuda olahraga republik ... kompas com menteri pemuda olahraga republik in... kompas com menteri pemuda olahraga republik in... ['kompas', 'com', 'menteri', 'pemuda', 'olahra... BOLA
# Cek distribusi kategori berita
print("="*50)
print("DISTRIBUSI KATEGORI BERITA")
print("="*50)
kategori_dist = df['Kategori Berita'].value_counts()
print(kategori_dist)

# Visualisasi distribusi kategori
plt.figure(figsize=(10, 6))
kategori_dist.plot(kind='bar', color='skyblue', edgecolor='black')
plt.title('Distribusi Kategori Berita', fontsize=14, fontweight='bold')
plt.xlabel('Kategori', fontsize=12)
plt.ylabel('Jumlah Berita', fontsize=12)
plt.xticks(rotation=45, ha='right')
plt.grid(axis='y', alpha=0.3)
plt.tight_layout()
plt.show()

print(f"\nJumlah kategori: {df['Kategori Berita'].nunique()}")
==================================================
DISTRIBUSI KATEGORI BERITA
==================================================
Kategori Berita
BOLA        200
MONEY       200
NEWS        200
OTOMOTIF    200
PROV        200
REGIONAL    200
Name: count, dtype: int64
../../_images/617fa24f99a8b29cb7b54e0c97fd26f5ab4b688c6fab5f55cc72fc14cff5a405.png
Jumlah kategori: 6

3. Persiapan Data untuk Klasifikasi#

Menggunakan kolom stemming_indo sebagai corpus (sudah di-preprocessing) dan Kategori Berita sebagai label.

# Ambil corpus dan label
corpus = df['stemming_indo'].astype(str).tolist()
labels = df['Kategori Berita'].tolist()

print("="*50)
print("PERSIAPAN DATA")
print("="*50)
print(f"Jumlah dokumen: {len(corpus)}")
print(f"Jumlah label: {len(labels)}")
print(f"\nContoh dokumen pertama:")
print(corpus[0][:200] + "...")
print(f"\nLabel pertama: {labels[0]}")
==================================================
PERSIAPAN DATA
==================================================
Jumlah dokumen: 1200
Jumlah label: 1200

Contoh dokumen pertama:
kompas com menteri pemuda olahraga erick thohir langsung gebrak minggu minggu jabat resmi cabut permenpora no tuai polemik kalang laku olahraga menpora erick thohir deregulasi besar besar mangkas atur...

Label pertama: BOLA
# Split data menjadi training dan testing (80:20)
X_train_text, X_test_text, y_train, y_test = train_test_split(
    corpus, 
    labels, 
    test_size=0.2, 
    random_state=42,
    stratify=labels  # Memastikan proporsi kategori sama di train dan test
)

print("="*50)
print("PEMBAGIAN DATA TRAINING DAN TESTING")
print("="*50)
print(f"Jumlah data training: {len(X_train_text)}")
print(f"Jumlah data testing: {len(X_test_text)}")
print(f"\nProporsi pembagian: {len(X_train_text)/len(corpus)*100:.1f}% training, {len(X_test_text)/len(corpus)*100:.1f}% testing")

# Cek distribusi kategori di data training dan testing
print("\n" + "="*50)
print("DISTRIBUSI KATEGORI DI DATA TRAINING")
print("="*50)
print(pd.Series(y_train).value_counts())

print("\n" + "="*50)
print("DISTRIBUSI KATEGORI DI DATA TESTING")
print("="*50)
print(pd.Series(y_test).value_counts())
==================================================
PEMBAGIAN DATA TRAINING DAN TESTING
==================================================
Jumlah data training: 960
Jumlah data testing: 240

Proporsi pembagian: 80.0% training, 20.0% testing

==================================================
DISTRIBUSI KATEGORI DI DATA TRAINING
==================================================
MONEY       160
NEWS        160
PROV        160
BOLA        160
OTOMOTIF    160
REGIONAL    160
Name: count, dtype: int64

==================================================
DISTRIBUSI KATEGORI DI DATA TESTING
==================================================
BOLA        40
PROV        40
REGIONAL    40
NEWS        40
MONEY       40
OTOMOTIF    40
Name: count, dtype: int64

4. Ekstraksi Fitur Menggunakan LDA#

4.1 Membuat Vocabulary dengan CountVectorizer#

Kita akan menggunakan filtering frekuensi untuk mendapatkan vocabulary yang berkualitas:

  • min_df: Kata harus muncul minimal di beberapa dokumen

  • max_df: Kata tidak boleh muncul di terlalu banyak dokumen (untuk menghindari kata umum)

# Membuat vocabulary dengan CountVectorizer
# min_df=5: kata harus muncul minimal di 5 dokumen
# max_df=0.8: kata tidak boleh muncul di lebih dari 80% dokumen
vectorizer = CountVectorizer(
    min_df=5,           # Minimum document frequency
    max_df=0.8,         # Maximum document frequency (untuk filter kata terlalu umum)
    max_features=5000   # Batasi jumlah fitur maksimal
)

# Fit dan transform data training
X_train_counts = vectorizer.fit_transform(X_train_text)

# Transform data testing (gunakan vocabulary yang sama dari training)
X_test_counts = vectorizer.transform(X_test_text)

print("="*50)
print("VOCABULARY INFORMATION")
print("="*50)
print(f"Ukuran vocabulary: {len(vectorizer.vocabulary_)}")
print(f"Bentuk matrix training: {X_train_counts.shape}")
print(f"Bentuk matrix testing: {X_test_counts.shape}")
print(f"\nContoh 10 kata pertama dalam vocabulary:")
print(list(vectorizer.vocabulary_.keys())[:10])
==================================================
VOCABULARY INFORMATION
==================================================
Ukuran vocabulary: 3663
Bentuk matrix training: (960, 3663)
Bentuk matrix testing: (240, 3663)

Contoh 10 kata pertama dalam vocabulary:
['jakarta', 'indeks', 'harga', 'saham', 'gabung', 'ihsg', 'kuat', 'gerak', 'zona', 'hijau']

4.2 Menentukan Jumlah Topik Optimal dengan Coherence Score#

Kita akan mencoba beberapa nilai k (jumlah topik) dan menghitung coherence score untuk setiap k.

# Fungsi untuk menghitung perplexity score
# Perplexity: Semakin rendah, semakin baik model
def compute_perplexity(lda_model, data):
    return lda_model.perplexity(data)

# Mencoba beberapa jumlah topik
topic_range = [5, 10, 15, 20, 25, 30]
perplexity_scores = []

print("="*50)
print("MENCARI JUMLAH TOPIK OPTIMAL")
print("="*50)

for n_topics in topic_range:
    print(f"Mencoba k={n_topics} topik...")
    
    # Train LDA dengan k topik
    lda = LatentDirichletAllocation(
        n_components=n_topics,
        random_state=42,
        max_iter=1000,
        learning_method='batch',
        n_jobs=-1
    )
    lda.fit(X_train_counts)
    
    # Hitung perplexity
    perplexity = compute_perplexity(lda, X_train_counts)
    perplexity_scores.append(perplexity)
    
    print(f"  Perplexity: {perplexity:.2f}")

print("\n✓ Selesai menghitung perplexity untuk berbagai jumlah topik")
==================================================
MENCARI JUMLAH TOPIK OPTIMAL
==================================================
Mencoba k=5 topik...
  Perplexity: 1255.00
Mencoba k=10 topik...
  Perplexity: 1255.00
Mencoba k=10 topik...
  Perplexity: 1146.88
Mencoba k=15 topik...
  Perplexity: 1146.88
Mencoba k=15 topik...
  Perplexity: 1099.68
Mencoba k=20 topik...
  Perplexity: 1099.68
Mencoba k=20 topik...
  Perplexity: 1057.90
Mencoba k=25 topik...
  Perplexity: 1057.90
Mencoba k=25 topik...
  Perplexity: 1020.32
Mencoba k=30 topik...
  Perplexity: 1020.32
Mencoba k=30 topik...
  Perplexity: 1017.01

✓ Selesai menghitung perplexity untuk berbagai jumlah topik
  Perplexity: 1017.01

✓ Selesai menghitung perplexity untuk berbagai jumlah topik
# Visualisasi Perplexity Score
plt.figure(figsize=(10, 6))
plt.plot(topic_range, perplexity_scores, marker='o', linewidth=2, markersize=8)
plt.xlabel('Jumlah Topik (k)', fontsize=12)
plt.ylabel('Perplexity Score', fontsize=12)
plt.title('Perplexity Score vs Jumlah Topik', fontsize=14, fontweight='bold')
plt.grid(True, alpha=0.3)
plt.xticks(topic_range)
plt.tight_layout()
plt.show()

# Pilih jumlah topik dengan perplexity terendah
optimal_topics = topic_range[np.argmin(perplexity_scores)]
print(f"\n✓ Jumlah topik optimal (berdasarkan perplexity): {optimal_topics}")
../../_images/0cd0f1a2aa4b855421089ce1d3a4d35d16b14120fa341cc403497b6ba5f15a9a.png
✓ Jumlah topik optimal (berdasarkan perplexity): 30

4.3 Melatih Model LDA dengan Jumlah Topik Optimal#

# Latih model LDA final dengan jumlah topik optimal
print("="*50)
print(f"MELATIH MODEL LDA DENGAN {optimal_topics} TOPIK")
print("="*50)

lda_model = LatentDirichletAllocation(
    n_components=optimal_topics,
    random_state=0,
    max_iter=1000,  # Lebih banyak iterasi untuk model final
    learning_method='batch',
    n_jobs=-1,
    verbose=1
)

# Fit model LDA pada data training
lda_model.fit(X_train_counts)

print(f"\n✓ Model LDA berhasil dilatih dengan {optimal_topics} topik")
==================================================
MELATIH MODEL LDA DENGAN 30 TOPIK
==================================================
iteration: 1 of max_iter: 1000
iteration: 2 of max_iter: 1000
iteration: 1 of max_iter: 1000
iteration: 2 of max_iter: 1000
iteration: 3 of max_iter: 1000
iteration: 4 of max_iter: 1000
iteration: 3 of max_iter: 1000
iteration: 4 of max_iter: 1000
iteration: 5 of max_iter: 1000
iteration: 6 of max_iter: 1000
iteration: 5 of max_iter: 1000
iteration: 6 of max_iter: 1000
iteration: 7 of max_iter: 1000
iteration: 8 of max_iter: 1000
iteration: 7 of max_iter: 1000
iteration: 8 of max_iter: 1000
iteration: 9 of max_iter: 1000
iteration: 10 of max_iter: 1000
iteration: 9 of max_iter: 1000
iteration: 10 of max_iter: 1000
iteration: 11 of max_iter: 1000
iteration: 12 of max_iter: 1000
iteration: 11 of max_iter: 1000
iteration: 12 of max_iter: 1000
iteration: 13 of max_iter: 1000
iteration: 14 of max_iter: 1000
iteration: 13 of max_iter: 1000
iteration: 14 of max_iter: 1000
iteration: 15 of max_iter: 1000
iteration: 16 of max_iter: 1000
iteration: 15 of max_iter: 1000
iteration: 16 of max_iter: 1000
iteration: 17 of max_iter: 1000
iteration: 18 of max_iter: 1000
iteration: 17 of max_iter: 1000
iteration: 18 of max_iter: 1000
iteration: 19 of max_iter: 1000
iteration: 20 of max_iter: 1000
iteration: 19 of max_iter: 1000
iteration: 20 of max_iter: 1000
iteration: 21 of max_iter: 1000
iteration: 22 of max_iter: 1000
iteration: 21 of max_iter: 1000
iteration: 22 of max_iter: 1000
iteration: 23 of max_iter: 1000
iteration: 24 of max_iter: 1000
iteration: 23 of max_iter: 1000
iteration: 24 of max_iter: 1000
iteration: 25 of max_iter: 1000
iteration: 26 of max_iter: 1000
iteration: 25 of max_iter: 1000
iteration: 26 of max_iter: 1000
iteration: 27 of max_iter: 1000
iteration: 28 of max_iter: 1000
iteration: 27 of max_iter: 1000
iteration: 28 of max_iter: 1000
iteration: 29 of max_iter: 1000
iteration: 30 of max_iter: 1000
iteration: 29 of max_iter: 1000
iteration: 30 of max_iter: 1000
iteration: 31 of max_iter: 1000
iteration: 32 of max_iter: 1000
iteration: 31 of max_iter: 1000
iteration: 32 of max_iter: 1000
iteration: 33 of max_iter: 1000
iteration: 34 of max_iter: 1000
iteration: 33 of max_iter: 1000
iteration: 34 of max_iter: 1000
iteration: 35 of max_iter: 1000
iteration: 36 of max_iter: 1000
iteration: 35 of max_iter: 1000
iteration: 36 of max_iter: 1000
iteration: 37 of max_iter: 1000
iteration: 38 of max_iter: 1000
iteration: 37 of max_iter: 1000
iteration: 38 of max_iter: 1000
iteration: 39 of max_iter: 1000
iteration: 40 of max_iter: 1000
iteration: 39 of max_iter: 1000
iteration: 40 of max_iter: 1000
iteration: 41 of max_iter: 1000
iteration: 42 of max_iter: 1000
iteration: 41 of max_iter: 1000
iteration: 42 of max_iter: 1000
iteration: 43 of max_iter: 1000
iteration: 44 of max_iter: 1000
iteration: 43 of max_iter: 1000
iteration: 44 of max_iter: 1000
iteration: 45 of max_iter: 1000
iteration: 46 of max_iter: 1000
iteration: 45 of max_iter: 1000
iteration: 46 of max_iter: 1000
iteration: 47 of max_iter: 1000
iteration: 48 of max_iter: 1000
iteration: 47 of max_iter: 1000
iteration: 48 of max_iter: 1000
iteration: 49 of max_iter: 1000
iteration: 50 of max_iter: 1000
iteration: 49 of max_iter: 1000
iteration: 50 of max_iter: 1000
iteration: 51 of max_iter: 1000
iteration: 52 of max_iter: 1000
iteration: 51 of max_iter: 1000
iteration: 52 of max_iter: 1000
iteration: 53 of max_iter: 1000
iteration: 54 of max_iter: 1000
iteration: 53 of max_iter: 1000
iteration: 54 of max_iter: 1000
iteration: 55 of max_iter: 1000
iteration: 56 of max_iter: 1000
iteration: 55 of max_iter: 1000
iteration: 56 of max_iter: 1000
iteration: 57 of max_iter: 1000
iteration: 58 of max_iter: 1000
iteration: 57 of max_iter: 1000
iteration: 58 of max_iter: 1000
iteration: 59 of max_iter: 1000
iteration: 60 of max_iter: 1000
iteration: 59 of max_iter: 1000
iteration: 60 of max_iter: 1000
iteration: 61 of max_iter: 1000
iteration: 62 of max_iter: 1000
iteration: 61 of max_iter: 1000
iteration: 62 of max_iter: 1000
iteration: 63 of max_iter: 1000
iteration: 64 of max_iter: 1000
iteration: 63 of max_iter: 1000
iteration: 64 of max_iter: 1000
iteration: 65 of max_iter: 1000
iteration: 66 of max_iter: 1000
iteration: 65 of max_iter: 1000
iteration: 66 of max_iter: 1000
iteration: 67 of max_iter: 1000
iteration: 68 of max_iter: 1000
iteration: 67 of max_iter: 1000
iteration: 68 of max_iter: 1000
iteration: 69 of max_iter: 1000
iteration: 70 of max_iter: 1000
iteration: 69 of max_iter: 1000
iteration: 70 of max_iter: 1000
iteration: 71 of max_iter: 1000
iteration: 72 of max_iter: 1000
iteration: 71 of max_iter: 1000
iteration: 72 of max_iter: 1000
iteration: 73 of max_iter: 1000
iteration: 74 of max_iter: 1000
iteration: 73 of max_iter: 1000
iteration: 74 of max_iter: 1000
iteration: 75 of max_iter: 1000
iteration: 76 of max_iter: 1000
iteration: 75 of max_iter: 1000
iteration: 76 of max_iter: 1000
iteration: 77 of max_iter: 1000
iteration: 78 of max_iter: 1000
iteration: 77 of max_iter: 1000
iteration: 78 of max_iter: 1000
iteration: 79 of max_iter: 1000
iteration: 80 of max_iter: 1000
iteration: 79 of max_iter: 1000
iteration: 80 of max_iter: 1000
iteration: 81 of max_iter: 1000
iteration: 82 of max_iter: 1000
iteration: 81 of max_iter: 1000
iteration: 82 of max_iter: 1000
iteration: 83 of max_iter: 1000
iteration: 84 of max_iter: 1000
iteration: 83 of max_iter: 1000
iteration: 84 of max_iter: 1000
iteration: 85 of max_iter: 1000
iteration: 86 of max_iter: 1000
iteration: 85 of max_iter: 1000
iteration: 86 of max_iter: 1000
iteration: 87 of max_iter: 1000
iteration: 88 of max_iter: 1000
iteration: 87 of max_iter: 1000
iteration: 88 of max_iter: 1000
iteration: 89 of max_iter: 1000
iteration: 90 of max_iter: 1000
iteration: 89 of max_iter: 1000
iteration: 90 of max_iter: 1000
iteration: 91 of max_iter: 1000
iteration: 92 of max_iter: 1000
iteration: 91 of max_iter: 1000
iteration: 92 of max_iter: 1000
iteration: 93 of max_iter: 1000
iteration: 94 of max_iter: 1000
iteration: 93 of max_iter: 1000
iteration: 94 of max_iter: 1000
iteration: 95 of max_iter: 1000
iteration: 96 of max_iter: 1000
iteration: 95 of max_iter: 1000
iteration: 96 of max_iter: 1000
iteration: 97 of max_iter: 1000
iteration: 98 of max_iter: 1000
iteration: 97 of max_iter: 1000
iteration: 98 of max_iter: 1000
iteration: 99 of max_iter: 1000
iteration: 100 of max_iter: 1000
iteration: 99 of max_iter: 1000
iteration: 100 of max_iter: 1000
iteration: 101 of max_iter: 1000
iteration: 102 of max_iter: 1000
iteration: 101 of max_iter: 1000
iteration: 102 of max_iter: 1000
iteration: 103 of max_iter: 1000
iteration: 104 of max_iter: 1000
iteration: 103 of max_iter: 1000
iteration: 104 of max_iter: 1000
iteration: 105 of max_iter: 1000
iteration: 106 of max_iter: 1000
iteration: 105 of max_iter: 1000
iteration: 106 of max_iter: 1000
iteration: 107 of max_iter: 1000
iteration: 108 of max_iter: 1000
iteration: 107 of max_iter: 1000
iteration: 108 of max_iter: 1000
iteration: 109 of max_iter: 1000
iteration: 110 of max_iter: 1000
iteration: 109 of max_iter: 1000
iteration: 110 of max_iter: 1000
iteration: 111 of max_iter: 1000
iteration: 112 of max_iter: 1000
iteration: 111 of max_iter: 1000
iteration: 112 of max_iter: 1000
iteration: 113 of max_iter: 1000
iteration: 114 of max_iter: 1000
iteration: 113 of max_iter: 1000
iteration: 114 of max_iter: 1000
iteration: 115 of max_iter: 1000
iteration: 116 of max_iter: 1000
iteration: 115 of max_iter: 1000
iteration: 116 of max_iter: 1000
iteration: 117 of max_iter: 1000
iteration: 118 of max_iter: 1000
iteration: 117 of max_iter: 1000
iteration: 118 of max_iter: 1000
iteration: 119 of max_iter: 1000
iteration: 120 of max_iter: 1000
iteration: 119 of max_iter: 1000
iteration: 120 of max_iter: 1000
iteration: 121 of max_iter: 1000
iteration: 122 of max_iter: 1000
iteration: 121 of max_iter: 1000
iteration: 122 of max_iter: 1000
iteration: 123 of max_iter: 1000
iteration: 124 of max_iter: 1000
iteration: 123 of max_iter: 1000
iteration: 124 of max_iter: 1000
iteration: 125 of max_iter: 1000
iteration: 126 of max_iter: 1000
iteration: 125 of max_iter: 1000
iteration: 126 of max_iter: 1000
iteration: 127 of max_iter: 1000
iteration: 128 of max_iter: 1000
iteration: 127 of max_iter: 1000
iteration: 128 of max_iter: 1000
iteration: 129 of max_iter: 1000
iteration: 130 of max_iter: 1000
iteration: 129 of max_iter: 1000
iteration: 130 of max_iter: 1000
iteration: 131 of max_iter: 1000
iteration: 132 of max_iter: 1000
iteration: 131 of max_iter: 1000
iteration: 132 of max_iter: 1000
iteration: 133 of max_iter: 1000
iteration: 134 of max_iter: 1000
iteration: 133 of max_iter: 1000
iteration: 134 of max_iter: 1000
iteration: 135 of max_iter: 1000
iteration: 136 of max_iter: 1000
iteration: 135 of max_iter: 1000
iteration: 136 of max_iter: 1000
iteration: 137 of max_iter: 1000
iteration: 138 of max_iter: 1000
iteration: 137 of max_iter: 1000
iteration: 138 of max_iter: 1000
iteration: 139 of max_iter: 1000
iteration: 140 of max_iter: 1000
iteration: 139 of max_iter: 1000
iteration: 140 of max_iter: 1000
iteration: 141 of max_iter: 1000
iteration: 142 of max_iter: 1000
iteration: 141 of max_iter: 1000
iteration: 142 of max_iter: 1000
iteration: 143 of max_iter: 1000
iteration: 144 of max_iter: 1000
iteration: 143 of max_iter: 1000
iteration: 144 of max_iter: 1000
iteration: 145 of max_iter: 1000
iteration: 146 of max_iter: 1000
iteration: 145 of max_iter: 1000
iteration: 146 of max_iter: 1000
iteration: 147 of max_iter: 1000
iteration: 148 of max_iter: 1000
iteration: 147 of max_iter: 1000
iteration: 148 of max_iter: 1000
iteration: 149 of max_iter: 1000
iteration: 150 of max_iter: 1000
iteration: 149 of max_iter: 1000
iteration: 150 of max_iter: 1000
iteration: 151 of max_iter: 1000
iteration: 152 of max_iter: 1000
iteration: 151 of max_iter: 1000
iteration: 152 of max_iter: 1000
iteration: 153 of max_iter: 1000
iteration: 154 of max_iter: 1000
iteration: 153 of max_iter: 1000
iteration: 154 of max_iter: 1000
iteration: 155 of max_iter: 1000
iteration: 156 of max_iter: 1000
iteration: 155 of max_iter: 1000
iteration: 156 of max_iter: 1000
iteration: 157 of max_iter: 1000
iteration: 158 of max_iter: 1000
iteration: 157 of max_iter: 1000
iteration: 158 of max_iter: 1000
iteration: 159 of max_iter: 1000
iteration: 160 of max_iter: 1000
iteration: 159 of max_iter: 1000
iteration: 160 of max_iter: 1000
iteration: 161 of max_iter: 1000
iteration: 162 of max_iter: 1000
iteration: 161 of max_iter: 1000
iteration: 162 of max_iter: 1000
iteration: 163 of max_iter: 1000
iteration: 164 of max_iter: 1000
iteration: 163 of max_iter: 1000
iteration: 164 of max_iter: 1000
iteration: 165 of max_iter: 1000
iteration: 166 of max_iter: 1000
iteration: 165 of max_iter: 1000
iteration: 166 of max_iter: 1000
iteration: 167 of max_iter: 1000
iteration: 168 of max_iter: 1000
iteration: 167 of max_iter: 1000
iteration: 168 of max_iter: 1000
iteration: 169 of max_iter: 1000
iteration: 170 of max_iter: 1000
iteration: 169 of max_iter: 1000
iteration: 170 of max_iter: 1000
iteration: 171 of max_iter: 1000
iteration: 172 of max_iter: 1000
iteration: 171 of max_iter: 1000
iteration: 172 of max_iter: 1000
iteration: 173 of max_iter: 1000
iteration: 174 of max_iter: 1000
iteration: 173 of max_iter: 1000
iteration: 174 of max_iter: 1000
iteration: 175 of max_iter: 1000
iteration: 176 of max_iter: 1000
iteration: 175 of max_iter: 1000
iteration: 176 of max_iter: 1000
iteration: 177 of max_iter: 1000
iteration: 178 of max_iter: 1000
iteration: 177 of max_iter: 1000
iteration: 178 of max_iter: 1000
iteration: 179 of max_iter: 1000
iteration: 180 of max_iter: 1000
iteration: 179 of max_iter: 1000
iteration: 180 of max_iter: 1000
iteration: 181 of max_iter: 1000
iteration: 182 of max_iter: 1000
iteration: 181 of max_iter: 1000
iteration: 182 of max_iter: 1000
iteration: 183 of max_iter: 1000
iteration: 184 of max_iter: 1000
iteration: 183 of max_iter: 1000
iteration: 184 of max_iter: 1000
iteration: 185 of max_iter: 1000
iteration: 186 of max_iter: 1000
iteration: 185 of max_iter: 1000
iteration: 186 of max_iter: 1000
iteration: 187 of max_iter: 1000
iteration: 188 of max_iter: 1000
iteration: 187 of max_iter: 1000
iteration: 188 of max_iter: 1000
iteration: 189 of max_iter: 1000
iteration: 190 of max_iter: 1000
iteration: 189 of max_iter: 1000
iteration: 190 of max_iter: 1000
iteration: 191 of max_iter: 1000
iteration: 192 of max_iter: 1000
iteration: 191 of max_iter: 1000
iteration: 192 of max_iter: 1000
iteration: 193 of max_iter: 1000
iteration: 194 of max_iter: 1000
iteration: 193 of max_iter: 1000
iteration: 194 of max_iter: 1000
iteration: 195 of max_iter: 1000
iteration: 196 of max_iter: 1000
iteration: 195 of max_iter: 1000
iteration: 196 of max_iter: 1000
iteration: 197 of max_iter: 1000
iteration: 198 of max_iter: 1000
iteration: 197 of max_iter: 1000
iteration: 198 of max_iter: 1000
iteration: 199 of max_iter: 1000
iteration: 200 of max_iter: 1000
iteration: 199 of max_iter: 1000
iteration: 200 of max_iter: 1000
iteration: 201 of max_iter: 1000
iteration: 202 of max_iter: 1000
iteration: 201 of max_iter: 1000
iteration: 202 of max_iter: 1000
iteration: 203 of max_iter: 1000
iteration: 204 of max_iter: 1000
iteration: 203 of max_iter: 1000
iteration: 204 of max_iter: 1000
iteration: 205 of max_iter: 1000
iteration: 206 of max_iter: 1000
iteration: 205 of max_iter: 1000
iteration: 206 of max_iter: 1000
iteration: 207 of max_iter: 1000
iteration: 208 of max_iter: 1000
iteration: 207 of max_iter: 1000
iteration: 208 of max_iter: 1000
iteration: 209 of max_iter: 1000
iteration: 210 of max_iter: 1000
iteration: 209 of max_iter: 1000
iteration: 210 of max_iter: 1000
iteration: 211 of max_iter: 1000
iteration: 212 of max_iter: 1000
iteration: 211 of max_iter: 1000
iteration: 212 of max_iter: 1000
iteration: 213 of max_iter: 1000
iteration: 214 of max_iter: 1000
iteration: 213 of max_iter: 1000
iteration: 214 of max_iter: 1000
iteration: 215 of max_iter: 1000
iteration: 216 of max_iter: 1000
iteration: 215 of max_iter: 1000
iteration: 216 of max_iter: 1000
iteration: 217 of max_iter: 1000
iteration: 218 of max_iter: 1000
iteration: 217 of max_iter: 1000
iteration: 218 of max_iter: 1000
iteration: 219 of max_iter: 1000
iteration: 220 of max_iter: 1000
iteration: 219 of max_iter: 1000
iteration: 220 of max_iter: 1000
iteration: 221 of max_iter: 1000
iteration: 221 of max_iter: 1000
iteration: 222 of max_iter: 1000
iteration: 223 of max_iter: 1000
iteration: 222 of max_iter: 1000
iteration: 223 of max_iter: 1000
iteration: 224 of max_iter: 1000
iteration: 225 of max_iter: 1000
iteration: 224 of max_iter: 1000
iteration: 225 of max_iter: 1000
iteration: 226 of max_iter: 1000
iteration: 227 of max_iter: 1000
iteration: 226 of max_iter: 1000
iteration: 227 of max_iter: 1000
iteration: 228 of max_iter: 1000
iteration: 229 of max_iter: 1000
iteration: 228 of max_iter: 1000
iteration: 229 of max_iter: 1000
iteration: 230 of max_iter: 1000
iteration: 231 of max_iter: 1000
iteration: 230 of max_iter: 1000
iteration: 231 of max_iter: 1000
iteration: 232 of max_iter: 1000
iteration: 233 of max_iter: 1000
iteration: 232 of max_iter: 1000
iteration: 233 of max_iter: 1000
iteration: 234 of max_iter: 1000
iteration: 235 of max_iter: 1000
iteration: 234 of max_iter: 1000
iteration: 235 of max_iter: 1000
iteration: 236 of max_iter: 1000
iteration: 237 of max_iter: 1000
iteration: 236 of max_iter: 1000
iteration: 237 of max_iter: 1000
iteration: 238 of max_iter: 1000
iteration: 239 of max_iter: 1000
iteration: 238 of max_iter: 1000
iteration: 239 of max_iter: 1000
iteration: 240 of max_iter: 1000
iteration: 241 of max_iter: 1000
iteration: 240 of max_iter: 1000
iteration: 241 of max_iter: 1000
iteration: 242 of max_iter: 1000
iteration: 243 of max_iter: 1000
iteration: 242 of max_iter: 1000
iteration: 243 of max_iter: 1000
iteration: 244 of max_iter: 1000
iteration: 245 of max_iter: 1000
iteration: 244 of max_iter: 1000
iteration: 245 of max_iter: 1000
iteration: 246 of max_iter: 1000
iteration: 247 of max_iter: 1000
iteration: 246 of max_iter: 1000
iteration: 247 of max_iter: 1000
iteration: 248 of max_iter: 1000
iteration: 249 of max_iter: 1000
iteration: 248 of max_iter: 1000
iteration: 249 of max_iter: 1000
iteration: 250 of max_iter: 1000
iteration: 250 of max_iter: 1000
iteration: 251 of max_iter: 1000
iteration: 252 of max_iter: 1000
iteration: 251 of max_iter: 1000
iteration: 252 of max_iter: 1000
iteration: 253 of max_iter: 1000
iteration: 254 of max_iter: 1000
iteration: 253 of max_iter: 1000
iteration: 254 of max_iter: 1000
iteration: 255 of max_iter: 1000
iteration: 255 of max_iter: 1000
iteration: 256 of max_iter: 1000
iteration: 256 of max_iter: 1000
iteration: 257 of max_iter: 1000
iteration: 257 of max_iter: 1000
iteration: 258 of max_iter: 1000
iteration: 259 of max_iter: 1000
iteration: 258 of max_iter: 1000
iteration: 259 of max_iter: 1000
iteration: 260 of max_iter: 1000
iteration: 261 of max_iter: 1000
iteration: 260 of max_iter: 1000
iteration: 261 of max_iter: 1000
iteration: 262 of max_iter: 1000
iteration: 263 of max_iter: 1000
iteration: 262 of max_iter: 1000
iteration: 263 of max_iter: 1000
iteration: 264 of max_iter: 1000
iteration: 265 of max_iter: 1000
iteration: 266 of max_iter: 1000
iteration: 264 of max_iter: 1000
iteration: 265 of max_iter: 1000
iteration: 266 of max_iter: 1000
iteration: 267 of max_iter: 1000
iteration: 268 of max_iter: 1000
iteration: 267 of max_iter: 1000
iteration: 268 of max_iter: 1000
iteration: 269 of max_iter: 1000
iteration: 270 of max_iter: 1000
iteration: 269 of max_iter: 1000
iteration: 270 of max_iter: 1000
iteration: 271 of max_iter: 1000
iteration: 272 of max_iter: 1000
iteration: 271 of max_iter: 1000
iteration: 272 of max_iter: 1000
iteration: 273 of max_iter: 1000
iteration: 274 of max_iter: 1000
iteration: 273 of max_iter: 1000
iteration: 274 of max_iter: 1000
iteration: 275 of max_iter: 1000
iteration: 276 of max_iter: 1000
iteration: 275 of max_iter: 1000
iteration: 276 of max_iter: 1000
iteration: 277 of max_iter: 1000
iteration: 278 of max_iter: 1000
iteration: 277 of max_iter: 1000
iteration: 278 of max_iter: 1000
iteration: 279 of max_iter: 1000
iteration: 280 of max_iter: 1000
iteration: 279 of max_iter: 1000
iteration: 280 of max_iter: 1000
iteration: 281 of max_iter: 1000
iteration: 282 of max_iter: 1000
iteration: 281 of max_iter: 1000
iteration: 282 of max_iter: 1000
iteration: 283 of max_iter: 1000
iteration: 284 of max_iter: 1000
iteration: 283 of max_iter: 1000
iteration: 284 of max_iter: 1000
iteration: 285 of max_iter: 1000
iteration: 286 of max_iter: 1000
iteration: 285 of max_iter: 1000
iteration: 286 of max_iter: 1000
iteration: 287 of max_iter: 1000
iteration: 288 of max_iter: 1000
iteration: 287 of max_iter: 1000
iteration: 288 of max_iter: 1000
iteration: 289 of max_iter: 1000
iteration: 290 of max_iter: 1000
iteration: 289 of max_iter: 1000
iteration: 290 of max_iter: 1000
iteration: 291 of max_iter: 1000
iteration: 292 of max_iter: 1000
iteration: 291 of max_iter: 1000
iteration: 292 of max_iter: 1000
iteration: 293 of max_iter: 1000
iteration: 294 of max_iter: 1000
iteration: 293 of max_iter: 1000
iteration: 294 of max_iter: 1000
iteration: 295 of max_iter: 1000
iteration: 296 of max_iter: 1000
iteration: 295 of max_iter: 1000
iteration: 296 of max_iter: 1000
iteration: 297 of max_iter: 1000
iteration: 298 of max_iter: 1000
iteration: 297 of max_iter: 1000
iteration: 298 of max_iter: 1000
iteration: 299 of max_iter: 1000
iteration: 300 of max_iter: 1000
iteration: 299 of max_iter: 1000
iteration: 300 of max_iter: 1000
iteration: 301 of max_iter: 1000
iteration: 302 of max_iter: 1000
iteration: 301 of max_iter: 1000
iteration: 302 of max_iter: 1000
iteration: 303 of max_iter: 1000
iteration: 304 of max_iter: 1000
iteration: 303 of max_iter: 1000
iteration: 304 of max_iter: 1000
iteration: 305 of max_iter: 1000
iteration: 306 of max_iter: 1000
iteration: 305 of max_iter: 1000
iteration: 306 of max_iter: 1000
iteration: 307 of max_iter: 1000
iteration: 308 of max_iter: 1000
iteration: 307 of max_iter: 1000
iteration: 308 of max_iter: 1000
iteration: 309 of max_iter: 1000
iteration: 310 of max_iter: 1000
iteration: 309 of max_iter: 1000
iteration: 310 of max_iter: 1000
iteration: 311 of max_iter: 1000
iteration: 312 of max_iter: 1000
iteration: 311 of max_iter: 1000
iteration: 312 of max_iter: 1000
iteration: 313 of max_iter: 1000
iteration: 314 of max_iter: 1000
iteration: 313 of max_iter: 1000
iteration: 314 of max_iter: 1000
iteration: 315 of max_iter: 1000
iteration: 316 of max_iter: 1000
iteration: 315 of max_iter: 1000
iteration: 316 of max_iter: 1000
iteration: 317 of max_iter: 1000
iteration: 318 of max_iter: 1000
iteration: 317 of max_iter: 1000
iteration: 318 of max_iter: 1000
iteration: 319 of max_iter: 1000
iteration: 320 of max_iter: 1000
iteration: 319 of max_iter: 1000
iteration: 320 of max_iter: 1000
iteration: 321 of max_iter: 1000
iteration: 322 of max_iter: 1000
iteration: 321 of max_iter: 1000
iteration: 322 of max_iter: 1000
iteration: 323 of max_iter: 1000
iteration: 324 of max_iter: 1000
iteration: 323 of max_iter: 1000
iteration: 324 of max_iter: 1000
iteration: 325 of max_iter: 1000
iteration: 326 of max_iter: 1000
iteration: 325 of max_iter: 1000
iteration: 326 of max_iter: 1000
iteration: 327 of max_iter: 1000
iteration: 327 of max_iter: 1000
iteration: 328 of max_iter: 1000
iteration: 328 of max_iter: 1000
iteration: 329 of max_iter: 1000
iteration: 330 of max_iter: 1000
iteration: 329 of max_iter: 1000
iteration: 330 of max_iter: 1000
iteration: 331 of max_iter: 1000
iteration: 332 of max_iter: 1000
iteration: 331 of max_iter: 1000
iteration: 332 of max_iter: 1000
iteration: 333 of max_iter: 1000
iteration: 334 of max_iter: 1000
iteration: 333 of max_iter: 1000
iteration: 334 of max_iter: 1000
iteration: 335 of max_iter: 1000
iteration: 336 of max_iter: 1000
iteration: 335 of max_iter: 1000
iteration: 336 of max_iter: 1000
iteration: 337 of max_iter: 1000
iteration: 338 of max_iter: 1000
iteration: 337 of max_iter: 1000
iteration: 338 of max_iter: 1000
iteration: 339 of max_iter: 1000
iteration: 340 of max_iter: 1000
iteration: 339 of max_iter: 1000
iteration: 340 of max_iter: 1000
iteration: 341 of max_iter: 1000
iteration: 342 of max_iter: 1000
iteration: 341 of max_iter: 1000
iteration: 342 of max_iter: 1000
iteration: 343 of max_iter: 1000
iteration: 344 of max_iter: 1000
iteration: 343 of max_iter: 1000
iteration: 344 of max_iter: 1000
iteration: 345 of max_iter: 1000
iteration: 346 of max_iter: 1000
iteration: 345 of max_iter: 1000
iteration: 346 of max_iter: 1000
iteration: 347 of max_iter: 1000
iteration: 348 of max_iter: 1000
iteration: 347 of max_iter: 1000
iteration: 348 of max_iter: 1000
iteration: 349 of max_iter: 1000
iteration: 350 of max_iter: 1000
iteration: 349 of max_iter: 1000
iteration: 350 of max_iter: 1000
iteration: 351 of max_iter: 1000
iteration: 352 of max_iter: 1000
iteration: 351 of max_iter: 1000
iteration: 352 of max_iter: 1000
iteration: 353 of max_iter: 1000
iteration: 354 of max_iter: 1000
iteration: 353 of max_iter: 1000
iteration: 354 of max_iter: 1000
iteration: 355 of max_iter: 1000
iteration: 356 of max_iter: 1000
iteration: 355 of max_iter: 1000
iteration: 356 of max_iter: 1000
iteration: 357 of max_iter: 1000
iteration: 358 of max_iter: 1000
iteration: 357 of max_iter: 1000
iteration: 358 of max_iter: 1000
iteration: 359 of max_iter: 1000
iteration: 360 of max_iter: 1000
iteration: 359 of max_iter: 1000
iteration: 360 of max_iter: 1000
iteration: 361 of max_iter: 1000
iteration: 362 of max_iter: 1000
iteration: 361 of max_iter: 1000
iteration: 362 of max_iter: 1000
iteration: 363 of max_iter: 1000
iteration: 364 of max_iter: 1000
iteration: 363 of max_iter: 1000
iteration: 364 of max_iter: 1000
iteration: 365 of max_iter: 1000
iteration: 366 of max_iter: 1000
iteration: 365 of max_iter: 1000
iteration: 366 of max_iter: 1000
iteration: 367 of max_iter: 1000
iteration: 368 of max_iter: 1000
iteration: 367 of max_iter: 1000
iteration: 368 of max_iter: 1000
iteration: 369 of max_iter: 1000
iteration: 370 of max_iter: 1000
iteration: 369 of max_iter: 1000
iteration: 370 of max_iter: 1000
iteration: 371 of max_iter: 1000
iteration: 372 of max_iter: 1000
iteration: 371 of max_iter: 1000
iteration: 372 of max_iter: 1000
iteration: 373 of max_iter: 1000
iteration: 374 of max_iter: 1000
iteration: 373 of max_iter: 1000
iteration: 374 of max_iter: 1000
iteration: 375 of max_iter: 1000
iteration: 376 of max_iter: 1000
iteration: 375 of max_iter: 1000
iteration: 376 of max_iter: 1000
iteration: 377 of max_iter: 1000
iteration: 378 of max_iter: 1000
iteration: 377 of max_iter: 1000
iteration: 378 of max_iter: 1000
iteration: 379 of max_iter: 1000
iteration: 380 of max_iter: 1000
iteration: 379 of max_iter: 1000
iteration: 380 of max_iter: 1000
iteration: 381 of max_iter: 1000
iteration: 382 of max_iter: 1000
iteration: 381 of max_iter: 1000
iteration: 382 of max_iter: 1000
iteration: 383 of max_iter: 1000
iteration: 384 of max_iter: 1000
iteration: 383 of max_iter: 1000
iteration: 384 of max_iter: 1000
iteration: 385 of max_iter: 1000
iteration: 386 of max_iter: 1000
iteration: 385 of max_iter: 1000
iteration: 386 of max_iter: 1000
iteration: 387 of max_iter: 1000
iteration: 388 of max_iter: 1000
iteration: 387 of max_iter: 1000
iteration: 388 of max_iter: 1000
iteration: 389 of max_iter: 1000
iteration: 390 of max_iter: 1000
iteration: 389 of max_iter: 1000
iteration: 390 of max_iter: 1000
iteration: 391 of max_iter: 1000
iteration: 392 of max_iter: 1000
iteration: 391 of max_iter: 1000
iteration: 392 of max_iter: 1000
iteration: 393 of max_iter: 1000
iteration: 394 of max_iter: 1000
iteration: 393 of max_iter: 1000
iteration: 394 of max_iter: 1000
iteration: 395 of max_iter: 1000
iteration: 396 of max_iter: 1000
iteration: 395 of max_iter: 1000
iteration: 396 of max_iter: 1000
iteration: 397 of max_iter: 1000
iteration: 398 of max_iter: 1000
iteration: 397 of max_iter: 1000
iteration: 398 of max_iter: 1000
iteration: 399 of max_iter: 1000
iteration: 400 of max_iter: 1000
iteration: 399 of max_iter: 1000
iteration: 400 of max_iter: 1000
iteration: 401 of max_iter: 1000
iteration: 402 of max_iter: 1000
iteration: 401 of max_iter: 1000
iteration: 402 of max_iter: 1000
iteration: 403 of max_iter: 1000
iteration: 403 of max_iter: 1000
iteration: 404 of max_iter: 1000
iteration: 405 of max_iter: 1000
iteration: 404 of max_iter: 1000
iteration: 405 of max_iter: 1000
iteration: 406 of max_iter: 1000
iteration: 407 of max_iter: 1000
iteration: 406 of max_iter: 1000
iteration: 407 of max_iter: 1000
iteration: 408 of max_iter: 1000
iteration: 409 of max_iter: 1000
iteration: 408 of max_iter: 1000
iteration: 409 of max_iter: 1000
iteration: 410 of max_iter: 1000
iteration: 411 of max_iter: 1000
iteration: 410 of max_iter: 1000
iteration: 411 of max_iter: 1000
iteration: 412 of max_iter: 1000
iteration: 413 of max_iter: 1000
iteration: 412 of max_iter: 1000
iteration: 413 of max_iter: 1000
iteration: 414 of max_iter: 1000
iteration: 415 of max_iter: 1000
iteration: 414 of max_iter: 1000
iteration: 415 of max_iter: 1000
iteration: 416 of max_iter: 1000
iteration: 417 of max_iter: 1000
iteration: 416 of max_iter: 1000
iteration: 417 of max_iter: 1000
iteration: 418 of max_iter: 1000
iteration: 419 of max_iter: 1000
iteration: 418 of max_iter: 1000
iteration: 419 of max_iter: 1000
iteration: 420 of max_iter: 1000
iteration: 421 of max_iter: 1000
iteration: 420 of max_iter: 1000
iteration: 421 of max_iter: 1000
iteration: 422 of max_iter: 1000
iteration: 423 of max_iter: 1000
iteration: 422 of max_iter: 1000
iteration: 423 of max_iter: 1000
iteration: 424 of max_iter: 1000
iteration: 425 of max_iter: 1000
iteration: 424 of max_iter: 1000
iteration: 425 of max_iter: 1000
iteration: 426 of max_iter: 1000
iteration: 427 of max_iter: 1000
iteration: 426 of max_iter: 1000
iteration: 427 of max_iter: 1000
iteration: 428 of max_iter: 1000
iteration: 429 of max_iter: 1000
iteration: 428 of max_iter: 1000
iteration: 429 of max_iter: 1000
iteration: 430 of max_iter: 1000
iteration: 431 of max_iter: 1000
iteration: 430 of max_iter: 1000
iteration: 431 of max_iter: 1000
iteration: 432 of max_iter: 1000
iteration: 433 of max_iter: 1000
iteration: 432 of max_iter: 1000
iteration: 433 of max_iter: 1000
iteration: 434 of max_iter: 1000
iteration: 435 of max_iter: 1000
iteration: 434 of max_iter: 1000
iteration: 435 of max_iter: 1000
iteration: 436 of max_iter: 1000
iteration: 437 of max_iter: 1000
iteration: 436 of max_iter: 1000
iteration: 437 of max_iter: 1000
iteration: 438 of max_iter: 1000
iteration: 439 of max_iter: 1000
iteration: 438 of max_iter: 1000
iteration: 439 of max_iter: 1000
iteration: 440 of max_iter: 1000
iteration: 441 of max_iter: 1000
iteration: 440 of max_iter: 1000
iteration: 441 of max_iter: 1000
iteration: 442 of max_iter: 1000
iteration: 443 of max_iter: 1000
iteration: 442 of max_iter: 1000
iteration: 443 of max_iter: 1000
iteration: 444 of max_iter: 1000
iteration: 445 of max_iter: 1000
iteration: 444 of max_iter: 1000
iteration: 445 of max_iter: 1000
iteration: 446 of max_iter: 1000
iteration: 447 of max_iter: 1000
iteration: 446 of max_iter: 1000
iteration: 447 of max_iter: 1000
iteration: 448 of max_iter: 1000
iteration: 449 of max_iter: 1000
iteration: 448 of max_iter: 1000
iteration: 449 of max_iter: 1000
iteration: 450 of max_iter: 1000
iteration: 451 of max_iter: 1000
iteration: 450 of max_iter: 1000
iteration: 451 of max_iter: 1000
iteration: 452 of max_iter: 1000
iteration: 453 of max_iter: 1000
iteration: 452 of max_iter: 1000
iteration: 453 of max_iter: 1000
iteration: 454 of max_iter: 1000
iteration: 455 of max_iter: 1000
iteration: 454 of max_iter: 1000
iteration: 455 of max_iter: 1000
iteration: 456 of max_iter: 1000
iteration: 457 of max_iter: 1000
iteration: 456 of max_iter: 1000
iteration: 457 of max_iter: 1000
iteration: 458 of max_iter: 1000
iteration: 459 of max_iter: 1000
iteration: 458 of max_iter: 1000
iteration: 459 of max_iter: 1000
iteration: 460 of max_iter: 1000
iteration: 461 of max_iter: 1000
iteration: 460 of max_iter: 1000
iteration: 461 of max_iter: 1000
iteration: 462 of max_iter: 1000
iteration: 462 of max_iter: 1000
iteration: 463 of max_iter: 1000
iteration: 464 of max_iter: 1000
iteration: 463 of max_iter: 1000
iteration: 464 of max_iter: 1000
iteration: 465 of max_iter: 1000
iteration: 466 of max_iter: 1000
iteration: 465 of max_iter: 1000
iteration: 466 of max_iter: 1000
iteration: 467 of max_iter: 1000
iteration: 468 of max_iter: 1000
iteration: 467 of max_iter: 1000
iteration: 468 of max_iter: 1000
iteration: 469 of max_iter: 1000
iteration: 470 of max_iter: 1000
iteration: 469 of max_iter: 1000
iteration: 470 of max_iter: 1000
iteration: 471 of max_iter: 1000
iteration: 472 of max_iter: 1000
iteration: 471 of max_iter: 1000
iteration: 472 of max_iter: 1000
iteration: 473 of max_iter: 1000
iteration: 474 of max_iter: 1000
iteration: 473 of max_iter: 1000
iteration: 474 of max_iter: 1000
iteration: 475 of max_iter: 1000
iteration: 476 of max_iter: 1000
iteration: 475 of max_iter: 1000
iteration: 476 of max_iter: 1000
iteration: 477 of max_iter: 1000
iteration: 478 of max_iter: 1000
iteration: 477 of max_iter: 1000
iteration: 478 of max_iter: 1000
iteration: 479 of max_iter: 1000
iteration: 480 of max_iter: 1000
iteration: 479 of max_iter: 1000
iteration: 480 of max_iter: 1000
iteration: 481 of max_iter: 1000
iteration: 482 of max_iter: 1000
iteration: 481 of max_iter: 1000
iteration: 482 of max_iter: 1000
iteration: 483 of max_iter: 1000
iteration: 484 of max_iter: 1000
iteration: 483 of max_iter: 1000
iteration: 484 of max_iter: 1000
iteration: 485 of max_iter: 1000
iteration: 486 of max_iter: 1000
iteration: 485 of max_iter: 1000
iteration: 486 of max_iter: 1000
iteration: 487 of max_iter: 1000
iteration: 488 of max_iter: 1000
iteration: 487 of max_iter: 1000
iteration: 488 of max_iter: 1000
iteration: 489 of max_iter: 1000
iteration: 490 of max_iter: 1000
iteration: 489 of max_iter: 1000
iteration: 490 of max_iter: 1000
iteration: 491 of max_iter: 1000
iteration: 492 of max_iter: 1000
iteration: 491 of max_iter: 1000
iteration: 492 of max_iter: 1000
iteration: 493 of max_iter: 1000
iteration: 494 of max_iter: 1000
iteration: 493 of max_iter: 1000
iteration: 494 of max_iter: 1000
iteration: 495 of max_iter: 1000
iteration: 496 of max_iter: 1000
iteration: 495 of max_iter: 1000
iteration: 496 of max_iter: 1000
iteration: 497 of max_iter: 1000
iteration: 498 of max_iter: 1000
iteration: 497 of max_iter: 1000
iteration: 498 of max_iter: 1000
iteration: 499 of max_iter: 1000
iteration: 500 of max_iter: 1000
iteration: 499 of max_iter: 1000
iteration: 500 of max_iter: 1000
iteration: 501 of max_iter: 1000
iteration: 502 of max_iter: 1000
iteration: 501 of max_iter: 1000
iteration: 502 of max_iter: 1000
iteration: 503 of max_iter: 1000
iteration: 504 of max_iter: 1000
iteration: 503 of max_iter: 1000
iteration: 504 of max_iter: 1000
iteration: 505 of max_iter: 1000
iteration: 506 of max_iter: 1000
iteration: 505 of max_iter: 1000
iteration: 506 of max_iter: 1000
iteration: 507 of max_iter: 1000
iteration: 508 of max_iter: 1000
iteration: 507 of max_iter: 1000
iteration: 508 of max_iter: 1000
iteration: 509 of max_iter: 1000
iteration: 510 of max_iter: 1000
iteration: 509 of max_iter: 1000
iteration: 510 of max_iter: 1000
iteration: 511 of max_iter: 1000
iteration: 512 of max_iter: 1000
iteration: 511 of max_iter: 1000
iteration: 512 of max_iter: 1000
iteration: 513 of max_iter: 1000
iteration: 514 of max_iter: 1000
iteration: 513 of max_iter: 1000
iteration: 514 of max_iter: 1000
iteration: 515 of max_iter: 1000
iteration: 516 of max_iter: 1000
iteration: 515 of max_iter: 1000
iteration: 516 of max_iter: 1000
iteration: 517 of max_iter: 1000
iteration: 518 of max_iter: 1000
iteration: 517 of max_iter: 1000
iteration: 518 of max_iter: 1000
iteration: 519 of max_iter: 1000
iteration: 520 of max_iter: 1000
iteration: 519 of max_iter: 1000
iteration: 520 of max_iter: 1000
iteration: 521 of max_iter: 1000
iteration: 522 of max_iter: 1000
iteration: 521 of max_iter: 1000
iteration: 522 of max_iter: 1000
iteration: 523 of max_iter: 1000
iteration: 524 of max_iter: 1000
iteration: 523 of max_iter: 1000
iteration: 524 of max_iter: 1000
iteration: 525 of max_iter: 1000
iteration: 526 of max_iter: 1000
iteration: 525 of max_iter: 1000
iteration: 526 of max_iter: 1000
iteration: 527 of max_iter: 1000
iteration: 528 of max_iter: 1000
iteration: 527 of max_iter: 1000
iteration: 528 of max_iter: 1000
iteration: 529 of max_iter: 1000
iteration: 530 of max_iter: 1000
iteration: 529 of max_iter: 1000
iteration: 530 of max_iter: 1000
iteration: 531 of max_iter: 1000
iteration: 532 of max_iter: 1000
iteration: 531 of max_iter: 1000
iteration: 532 of max_iter: 1000
iteration: 533 of max_iter: 1000
iteration: 534 of max_iter: 1000
iteration: 533 of max_iter: 1000
iteration: 534 of max_iter: 1000
iteration: 535 of max_iter: 1000
iteration: 536 of max_iter: 1000
iteration: 535 of max_iter: 1000
iteration: 536 of max_iter: 1000
iteration: 537 of max_iter: 1000
iteration: 538 of max_iter: 1000
iteration: 537 of max_iter: 1000
iteration: 538 of max_iter: 1000
iteration: 539 of max_iter: 1000
iteration: 540 of max_iter: 1000
iteration: 539 of max_iter: 1000
iteration: 540 of max_iter: 1000
iteration: 541 of max_iter: 1000
iteration: 542 of max_iter: 1000
iteration: 541 of max_iter: 1000
iteration: 542 of max_iter: 1000
iteration: 543 of max_iter: 1000
iteration: 544 of max_iter: 1000
iteration: 543 of max_iter: 1000
iteration: 544 of max_iter: 1000
iteration: 545 of max_iter: 1000
iteration: 546 of max_iter: 1000
iteration: 545 of max_iter: 1000
iteration: 546 of max_iter: 1000
iteration: 547 of max_iter: 1000
iteration: 548 of max_iter: 1000
iteration: 547 of max_iter: 1000
iteration: 548 of max_iter: 1000
iteration: 549 of max_iter: 1000
iteration: 550 of max_iter: 1000
iteration: 549 of max_iter: 1000
iteration: 550 of max_iter: 1000
iteration: 551 of max_iter: 1000
iteration: 552 of max_iter: 1000
iteration: 551 of max_iter: 1000
iteration: 552 of max_iter: 1000
iteration: 553 of max_iter: 1000
iteration: 554 of max_iter: 1000
iteration: 553 of max_iter: 1000
iteration: 554 of max_iter: 1000
iteration: 555 of max_iter: 1000
iteration: 556 of max_iter: 1000
iteration: 555 of max_iter: 1000
iteration: 556 of max_iter: 1000
iteration: 557 of max_iter: 1000
iteration: 558 of max_iter: 1000
iteration: 557 of max_iter: 1000
iteration: 558 of max_iter: 1000
iteration: 559 of max_iter: 1000
iteration: 560 of max_iter: 1000
iteration: 559 of max_iter: 1000
iteration: 560 of max_iter: 1000
iteration: 561 of max_iter: 1000
iteration: 562 of max_iter: 1000
iteration: 561 of max_iter: 1000
iteration: 562 of max_iter: 1000
iteration: 563 of max_iter: 1000
iteration: 564 of max_iter: 1000
iteration: 563 of max_iter: 1000
iteration: 564 of max_iter: 1000
iteration: 565 of max_iter: 1000
iteration: 566 of max_iter: 1000
iteration: 565 of max_iter: 1000
iteration: 566 of max_iter: 1000
iteration: 567 of max_iter: 1000
iteration: 568 of max_iter: 1000
iteration: 567 of max_iter: 1000
iteration: 568 of max_iter: 1000
iteration: 569 of max_iter: 1000
iteration: 570 of max_iter: 1000
iteration: 569 of max_iter: 1000
iteration: 570 of max_iter: 1000
iteration: 571 of max_iter: 1000
iteration: 572 of max_iter: 1000
iteration: 571 of max_iter: 1000
iteration: 572 of max_iter: 1000
iteration: 573 of max_iter: 1000
iteration: 574 of max_iter: 1000
iteration: 573 of max_iter: 1000
iteration: 574 of max_iter: 1000
iteration: 575 of max_iter: 1000
iteration: 576 of max_iter: 1000
iteration: 575 of max_iter: 1000
iteration: 576 of max_iter: 1000
iteration: 577 of max_iter: 1000
iteration: 578 of max_iter: 1000
iteration: 577 of max_iter: 1000
iteration: 578 of max_iter: 1000
iteration: 579 of max_iter: 1000
iteration: 580 of max_iter: 1000
iteration: 579 of max_iter: 1000
iteration: 580 of max_iter: 1000
iteration: 581 of max_iter: 1000
iteration: 582 of max_iter: 1000
iteration: 581 of max_iter: 1000
iteration: 582 of max_iter: 1000
iteration: 583 of max_iter: 1000
iteration: 584 of max_iter: 1000
iteration: 583 of max_iter: 1000
iteration: 584 of max_iter: 1000
iteration: 585 of max_iter: 1000
iteration: 586 of max_iter: 1000
iteration: 585 of max_iter: 1000
iteration: 586 of max_iter: 1000
iteration: 587 of max_iter: 1000
iteration: 588 of max_iter: 1000
iteration: 587 of max_iter: 1000
iteration: 588 of max_iter: 1000
iteration: 589 of max_iter: 1000
iteration: 590 of max_iter: 1000
iteration: 589 of max_iter: 1000
iteration: 590 of max_iter: 1000
iteration: 591 of max_iter: 1000
iteration: 592 of max_iter: 1000
iteration: 591 of max_iter: 1000
iteration: 592 of max_iter: 1000
iteration: 593 of max_iter: 1000
iteration: 594 of max_iter: 1000
iteration: 593 of max_iter: 1000
iteration: 594 of max_iter: 1000
iteration: 595 of max_iter: 1000
iteration: 596 of max_iter: 1000
iteration: 595 of max_iter: 1000
iteration: 596 of max_iter: 1000
iteration: 597 of max_iter: 1000
iteration: 598 of max_iter: 1000
iteration: 597 of max_iter: 1000
iteration: 598 of max_iter: 1000
iteration: 599 of max_iter: 1000
iteration: 600 of max_iter: 1000
iteration: 599 of max_iter: 1000
iteration: 600 of max_iter: 1000
iteration: 601 of max_iter: 1000
iteration: 602 of max_iter: 1000
iteration: 601 of max_iter: 1000
iteration: 602 of max_iter: 1000
iteration: 603 of max_iter: 1000
iteration: 604 of max_iter: 1000
iteration: 603 of max_iter: 1000
iteration: 604 of max_iter: 1000
iteration: 605 of max_iter: 1000
iteration: 606 of max_iter: 1000
iteration: 605 of max_iter: 1000
iteration: 606 of max_iter: 1000
iteration: 607 of max_iter: 1000
iteration: 608 of max_iter: 1000
iteration: 607 of max_iter: 1000
iteration: 608 of max_iter: 1000
iteration: 609 of max_iter: 1000
iteration: 610 of max_iter: 1000
iteration: 609 of max_iter: 1000
iteration: 610 of max_iter: 1000
iteration: 611 of max_iter: 1000
iteration: 612 of max_iter: 1000
iteration: 611 of max_iter: 1000
iteration: 612 of max_iter: 1000
iteration: 613 of max_iter: 1000
iteration: 614 of max_iter: 1000
iteration: 613 of max_iter: 1000
iteration: 614 of max_iter: 1000
iteration: 615 of max_iter: 1000
iteration: 616 of max_iter: 1000
iteration: 615 of max_iter: 1000
iteration: 616 of max_iter: 1000
iteration: 617 of max_iter: 1000
iteration: 618 of max_iter: 1000
iteration: 617 of max_iter: 1000
iteration: 618 of max_iter: 1000
iteration: 619 of max_iter: 1000
iteration: 620 of max_iter: 1000
iteration: 619 of max_iter: 1000
iteration: 620 of max_iter: 1000
iteration: 621 of max_iter: 1000
iteration: 622 of max_iter: 1000
iteration: 621 of max_iter: 1000
iteration: 622 of max_iter: 1000
iteration: 623 of max_iter: 1000
iteration: 624 of max_iter: 1000
iteration: 623 of max_iter: 1000
iteration: 624 of max_iter: 1000
iteration: 625 of max_iter: 1000
iteration: 626 of max_iter: 1000
iteration: 625 of max_iter: 1000
iteration: 626 of max_iter: 1000
iteration: 627 of max_iter: 1000
iteration: 628 of max_iter: 1000
iteration: 627 of max_iter: 1000
iteration: 628 of max_iter: 1000
iteration: 629 of max_iter: 1000
iteration: 630 of max_iter: 1000
iteration: 629 of max_iter: 1000
iteration: 630 of max_iter: 1000
iteration: 631 of max_iter: 1000
iteration: 632 of max_iter: 1000
iteration: 631 of max_iter: 1000
iteration: 632 of max_iter: 1000
iteration: 633 of max_iter: 1000
iteration: 634 of max_iter: 1000
iteration: 633 of max_iter: 1000
iteration: 634 of max_iter: 1000
iteration: 635 of max_iter: 1000
iteration: 636 of max_iter: 1000
iteration: 635 of max_iter: 1000
iteration: 636 of max_iter: 1000
iteration: 637 of max_iter: 1000
iteration: 638 of max_iter: 1000
iteration: 637 of max_iter: 1000
iteration: 638 of max_iter: 1000
iteration: 639 of max_iter: 1000
iteration: 640 of max_iter: 1000
iteration: 639 of max_iter: 1000
iteration: 640 of max_iter: 1000
iteration: 641 of max_iter: 1000
iteration: 642 of max_iter: 1000
iteration: 641 of max_iter: 1000
iteration: 642 of max_iter: 1000
iteration: 643 of max_iter: 1000
iteration: 644 of max_iter: 1000
iteration: 643 of max_iter: 1000
iteration: 644 of max_iter: 1000
iteration: 645 of max_iter: 1000
iteration: 646 of max_iter: 1000
iteration: 645 of max_iter: 1000
iteration: 646 of max_iter: 1000
iteration: 647 of max_iter: 1000
iteration: 648 of max_iter: 1000
iteration: 647 of max_iter: 1000
iteration: 648 of max_iter: 1000
iteration: 649 of max_iter: 1000
iteration: 650 of max_iter: 1000
iteration: 649 of max_iter: 1000
iteration: 650 of max_iter: 1000
iteration: 651 of max_iter: 1000
iteration: 652 of max_iter: 1000
iteration: 651 of max_iter: 1000
iteration: 652 of max_iter: 1000
iteration: 653 of max_iter: 1000
iteration: 654 of max_iter: 1000
iteration: 653 of max_iter: 1000
iteration: 654 of max_iter: 1000
iteration: 655 of max_iter: 1000
iteration: 656 of max_iter: 1000
iteration: 655 of max_iter: 1000
iteration: 656 of max_iter: 1000
iteration: 657 of max_iter: 1000
iteration: 658 of max_iter: 1000
iteration: 657 of max_iter: 1000
iteration: 658 of max_iter: 1000
iteration: 659 of max_iter: 1000
iteration: 660 of max_iter: 1000
iteration: 659 of max_iter: 1000
iteration: 660 of max_iter: 1000
iteration: 661 of max_iter: 1000
iteration: 662 of max_iter: 1000
iteration: 661 of max_iter: 1000
iteration: 662 of max_iter: 1000
iteration: 663 of max_iter: 1000
iteration: 664 of max_iter: 1000
iteration: 663 of max_iter: 1000
iteration: 664 of max_iter: 1000
iteration: 665 of max_iter: 1000
iteration: 666 of max_iter: 1000
iteration: 665 of max_iter: 1000
iteration: 666 of max_iter: 1000
iteration: 667 of max_iter: 1000
iteration: 668 of max_iter: 1000
iteration: 667 of max_iter: 1000
iteration: 668 of max_iter: 1000
iteration: 669 of max_iter: 1000
iteration: 670 of max_iter: 1000
iteration: 669 of max_iter: 1000
iteration: 670 of max_iter: 1000
iteration: 671 of max_iter: 1000
iteration: 672 of max_iter: 1000
iteration: 671 of max_iter: 1000
iteration: 672 of max_iter: 1000
iteration: 673 of max_iter: 1000
iteration: 674 of max_iter: 1000
iteration: 673 of max_iter: 1000
iteration: 674 of max_iter: 1000
iteration: 675 of max_iter: 1000
iteration: 676 of max_iter: 1000
iteration: 675 of max_iter: 1000
iteration: 676 of max_iter: 1000
iteration: 677 of max_iter: 1000
iteration: 678 of max_iter: 1000
iteration: 677 of max_iter: 1000
iteration: 678 of max_iter: 1000
iteration: 679 of max_iter: 1000
iteration: 680 of max_iter: 1000
iteration: 679 of max_iter: 1000
iteration: 680 of max_iter: 1000
iteration: 681 of max_iter: 1000
iteration: 682 of max_iter: 1000
iteration: 681 of max_iter: 1000
iteration: 682 of max_iter: 1000
iteration: 683 of max_iter: 1000
iteration: 684 of max_iter: 1000
iteration: 683 of max_iter: 1000
iteration: 684 of max_iter: 1000
iteration: 685 of max_iter: 1000
iteration: 686 of max_iter: 1000
iteration: 685 of max_iter: 1000
iteration: 686 of max_iter: 1000
iteration: 687 of max_iter: 1000
iteration: 688 of max_iter: 1000
iteration: 687 of max_iter: 1000
iteration: 688 of max_iter: 1000
iteration: 689 of max_iter: 1000
iteration: 690 of max_iter: 1000
iteration: 689 of max_iter: 1000
iteration: 690 of max_iter: 1000
iteration: 691 of max_iter: 1000
iteration: 692 of max_iter: 1000
iteration: 691 of max_iter: 1000
iteration: 692 of max_iter: 1000
iteration: 693 of max_iter: 1000
iteration: 694 of max_iter: 1000
iteration: 693 of max_iter: 1000
iteration: 694 of max_iter: 1000
iteration: 695 of max_iter: 1000
iteration: 695 of max_iter: 1000
iteration: 696 of max_iter: 1000
iteration: 697 of max_iter: 1000
iteration: 696 of max_iter: 1000
iteration: 697 of max_iter: 1000
iteration: 698 of max_iter: 1000
iteration: 699 of max_iter: 1000
iteration: 698 of max_iter: 1000
iteration: 699 of max_iter: 1000
iteration: 700 of max_iter: 1000
iteration: 701 of max_iter: 1000
iteration: 700 of max_iter: 1000
iteration: 701 of max_iter: 1000
iteration: 702 of max_iter: 1000
iteration: 703 of max_iter: 1000
iteration: 702 of max_iter: 1000
iteration: 703 of max_iter: 1000
iteration: 704 of max_iter: 1000
iteration: 705 of max_iter: 1000
iteration: 704 of max_iter: 1000
iteration: 705 of max_iter: 1000
iteration: 706 of max_iter: 1000
iteration: 707 of max_iter: 1000
iteration: 706 of max_iter: 1000
iteration: 707 of max_iter: 1000
iteration: 708 of max_iter: 1000
iteration: 709 of max_iter: 1000
iteration: 708 of max_iter: 1000
iteration: 709 of max_iter: 1000
iteration: 710 of max_iter: 1000
iteration: 711 of max_iter: 1000
iteration: 710 of max_iter: 1000
iteration: 711 of max_iter: 1000
iteration: 712 of max_iter: 1000
iteration: 713 of max_iter: 1000
iteration: 712 of max_iter: 1000
iteration: 713 of max_iter: 1000
iteration: 714 of max_iter: 1000
iteration: 715 of max_iter: 1000
iteration: 714 of max_iter: 1000
iteration: 715 of max_iter: 1000
iteration: 716 of max_iter: 1000
iteration: 717 of max_iter: 1000
iteration: 716 of max_iter: 1000
iteration: 717 of max_iter: 1000
iteration: 718 of max_iter: 1000
iteration: 719 of max_iter: 1000
iteration: 718 of max_iter: 1000
iteration: 719 of max_iter: 1000
iteration: 720 of max_iter: 1000
iteration: 721 of max_iter: 1000
iteration: 720 of max_iter: 1000
iteration: 721 of max_iter: 1000
iteration: 722 of max_iter: 1000
iteration: 723 of max_iter: 1000
iteration: 722 of max_iter: 1000
iteration: 723 of max_iter: 1000
iteration: 724 of max_iter: 1000
iteration: 725 of max_iter: 1000
iteration: 724 of max_iter: 1000
iteration: 725 of max_iter: 1000
iteration: 726 of max_iter: 1000
iteration: 727 of max_iter: 1000
iteration: 726 of max_iter: 1000
iteration: 727 of max_iter: 1000
iteration: 728 of max_iter: 1000
iteration: 729 of max_iter: 1000
iteration: 728 of max_iter: 1000
iteration: 729 of max_iter: 1000
iteration: 730 of max_iter: 1000
iteration: 731 of max_iter: 1000
iteration: 730 of max_iter: 1000
iteration: 731 of max_iter: 1000
iteration: 732 of max_iter: 1000
iteration: 733 of max_iter: 1000
iteration: 732 of max_iter: 1000
iteration: 733 of max_iter: 1000
iteration: 734 of max_iter: 1000
iteration: 735 of max_iter: 1000
iteration: 734 of max_iter: 1000
iteration: 735 of max_iter: 1000
iteration: 736 of max_iter: 1000
iteration: 737 of max_iter: 1000
iteration: 736 of max_iter: 1000
iteration: 737 of max_iter: 1000
iteration: 738 of max_iter: 1000
iteration: 739 of max_iter: 1000
iteration: 738 of max_iter: 1000
iteration: 739 of max_iter: 1000
iteration: 740 of max_iter: 1000
iteration: 741 of max_iter: 1000
iteration: 740 of max_iter: 1000
iteration: 741 of max_iter: 1000
iteration: 742 of max_iter: 1000
iteration: 743 of max_iter: 1000
iteration: 742 of max_iter: 1000
iteration: 743 of max_iter: 1000
iteration: 744 of max_iter: 1000
iteration: 745 of max_iter: 1000
iteration: 744 of max_iter: 1000
iteration: 745 of max_iter: 1000
iteration: 746 of max_iter: 1000
iteration: 747 of max_iter: 1000
iteration: 746 of max_iter: 1000
iteration: 747 of max_iter: 1000
iteration: 748 of max_iter: 1000
iteration: 749 of max_iter: 1000
iteration: 748 of max_iter: 1000
iteration: 749 of max_iter: 1000
iteration: 750 of max_iter: 1000
iteration: 751 of max_iter: 1000
iteration: 750 of max_iter: 1000
iteration: 751 of max_iter: 1000
iteration: 752 of max_iter: 1000
iteration: 753 of max_iter: 1000
iteration: 752 of max_iter: 1000
iteration: 753 of max_iter: 1000
iteration: 754 of max_iter: 1000
iteration: 755 of max_iter: 1000
iteration: 754 of max_iter: 1000
iteration: 755 of max_iter: 1000
iteration: 756 of max_iter: 1000
iteration: 757 of max_iter: 1000
iteration: 756 of max_iter: 1000
iteration: 757 of max_iter: 1000
iteration: 758 of max_iter: 1000
iteration: 759 of max_iter: 1000
iteration: 758 of max_iter: 1000
iteration: 759 of max_iter: 1000
iteration: 760 of max_iter: 1000
iteration: 761 of max_iter: 1000
iteration: 760 of max_iter: 1000
iteration: 761 of max_iter: 1000
iteration: 762 of max_iter: 1000
iteration: 763 of max_iter: 1000
iteration: 762 of max_iter: 1000
iteration: 763 of max_iter: 1000
iteration: 764 of max_iter: 1000
iteration: 765 of max_iter: 1000
iteration: 764 of max_iter: 1000
iteration: 765 of max_iter: 1000
iteration: 766 of max_iter: 1000
iteration: 767 of max_iter: 1000
iteration: 766 of max_iter: 1000
iteration: 767 of max_iter: 1000
iteration: 768 of max_iter: 1000
iteration: 769 of max_iter: 1000
iteration: 768 of max_iter: 1000
iteration: 769 of max_iter: 1000
iteration: 770 of max_iter: 1000
iteration: 771 of max_iter: 1000
iteration: 770 of max_iter: 1000
iteration: 771 of max_iter: 1000
iteration: 772 of max_iter: 1000
iteration: 773 of max_iter: 1000
iteration: 772 of max_iter: 1000
iteration: 773 of max_iter: 1000
iteration: 774 of max_iter: 1000
iteration: 775 of max_iter: 1000
iteration: 774 of max_iter: 1000
iteration: 775 of max_iter: 1000
iteration: 776 of max_iter: 1000
iteration: 777 of max_iter: 1000
iteration: 776 of max_iter: 1000
iteration: 777 of max_iter: 1000
iteration: 778 of max_iter: 1000
iteration: 779 of max_iter: 1000
iteration: 778 of max_iter: 1000
iteration: 779 of max_iter: 1000
iteration: 780 of max_iter: 1000
iteration: 781 of max_iter: 1000
iteration: 780 of max_iter: 1000
iteration: 781 of max_iter: 1000
iteration: 782 of max_iter: 1000
iteration: 783 of max_iter: 1000
iteration: 782 of max_iter: 1000
iteration: 783 of max_iter: 1000
iteration: 784 of max_iter: 1000
iteration: 785 of max_iter: 1000
iteration: 784 of max_iter: 1000
iteration: 785 of max_iter: 1000
iteration: 786 of max_iter: 1000
iteration: 787 of max_iter: 1000
iteration: 786 of max_iter: 1000
iteration: 787 of max_iter: 1000
iteration: 788 of max_iter: 1000
iteration: 789 of max_iter: 1000
iteration: 788 of max_iter: 1000
iteration: 789 of max_iter: 1000
iteration: 790 of max_iter: 1000
iteration: 791 of max_iter: 1000
iteration: 790 of max_iter: 1000
iteration: 791 of max_iter: 1000
iteration: 792 of max_iter: 1000
iteration: 793 of max_iter: 1000
iteration: 792 of max_iter: 1000
iteration: 793 of max_iter: 1000
iteration: 794 of max_iter: 1000
iteration: 795 of max_iter: 1000
iteration: 794 of max_iter: 1000
iteration: 795 of max_iter: 1000
iteration: 796 of max_iter: 1000
iteration: 797 of max_iter: 1000
iteration: 796 of max_iter: 1000
iteration: 797 of max_iter: 1000
iteration: 798 of max_iter: 1000
iteration: 799 of max_iter: 1000
iteration: 798 of max_iter: 1000
iteration: 799 of max_iter: 1000
iteration: 800 of max_iter: 1000
iteration: 801 of max_iter: 1000
iteration: 800 of max_iter: 1000
iteration: 801 of max_iter: 1000
iteration: 802 of max_iter: 1000
iteration: 803 of max_iter: 1000
iteration: 802 of max_iter: 1000
iteration: 803 of max_iter: 1000
iteration: 804 of max_iter: 1000
iteration: 805 of max_iter: 1000
iteration: 804 of max_iter: 1000
iteration: 805 of max_iter: 1000
iteration: 806 of max_iter: 1000
iteration: 807 of max_iter: 1000
iteration: 806 of max_iter: 1000
iteration: 807 of max_iter: 1000
iteration: 808 of max_iter: 1000
iteration: 809 of max_iter: 1000
iteration: 808 of max_iter: 1000
iteration: 809 of max_iter: 1000
iteration: 810 of max_iter: 1000
iteration: 811 of max_iter: 1000
iteration: 810 of max_iter: 1000
iteration: 811 of max_iter: 1000
iteration: 812 of max_iter: 1000
iteration: 813 of max_iter: 1000
iteration: 812 of max_iter: 1000
iteration: 813 of max_iter: 1000
iteration: 814 of max_iter: 1000
iteration: 815 of max_iter: 1000
iteration: 814 of max_iter: 1000
iteration: 815 of max_iter: 1000
iteration: 816 of max_iter: 1000
iteration: 817 of max_iter: 1000
iteration: 816 of max_iter: 1000
iteration: 817 of max_iter: 1000
iteration: 818 of max_iter: 1000
iteration: 819 of max_iter: 1000
iteration: 818 of max_iter: 1000
iteration: 819 of max_iter: 1000
iteration: 820 of max_iter: 1000
iteration: 821 of max_iter: 1000
iteration: 820 of max_iter: 1000
iteration: 821 of max_iter: 1000
iteration: 822 of max_iter: 1000
iteration: 823 of max_iter: 1000
iteration: 822 of max_iter: 1000
iteration: 823 of max_iter: 1000
iteration: 824 of max_iter: 1000
iteration: 825 of max_iter: 1000
iteration: 824 of max_iter: 1000
iteration: 825 of max_iter: 1000
iteration: 826 of max_iter: 1000
iteration: 827 of max_iter: 1000
iteration: 826 of max_iter: 1000
iteration: 827 of max_iter: 1000
iteration: 828 of max_iter: 1000
iteration: 829 of max_iter: 1000
iteration: 828 of max_iter: 1000
iteration: 829 of max_iter: 1000
iteration: 830 of max_iter: 1000
iteration: 831 of max_iter: 1000
iteration: 830 of max_iter: 1000
iteration: 831 of max_iter: 1000
iteration: 832 of max_iter: 1000
iteration: 833 of max_iter: 1000
iteration: 832 of max_iter: 1000
iteration: 833 of max_iter: 1000
iteration: 834 of max_iter: 1000
iteration: 834 of max_iter: 1000
iteration: 835 of max_iter: 1000
iteration: 836 of max_iter: 1000
iteration: 835 of max_iter: 1000
iteration: 836 of max_iter: 1000
iteration: 837 of max_iter: 1000
iteration: 838 of max_iter: 1000
iteration: 837 of max_iter: 1000
iteration: 838 of max_iter: 1000
iteration: 839 of max_iter: 1000
iteration: 839 of max_iter: 1000
iteration: 840 of max_iter: 1000
iteration: 841 of max_iter: 1000
iteration: 840 of max_iter: 1000
iteration: 841 of max_iter: 1000
iteration: 842 of max_iter: 1000
iteration: 843 of max_iter: 1000
iteration: 842 of max_iter: 1000
iteration: 843 of max_iter: 1000
iteration: 844 of max_iter: 1000
iteration: 845 of max_iter: 1000
iteration: 844 of max_iter: 1000
iteration: 845 of max_iter: 1000
iteration: 846 of max_iter: 1000
iteration: 847 of max_iter: 1000
iteration: 846 of max_iter: 1000
iteration: 847 of max_iter: 1000
iteration: 848 of max_iter: 1000
iteration: 849 of max_iter: 1000
iteration: 848 of max_iter: 1000
iteration: 849 of max_iter: 1000
iteration: 850 of max_iter: 1000
iteration: 851 of max_iter: 1000
iteration: 850 of max_iter: 1000
iteration: 851 of max_iter: 1000
iteration: 852 of max_iter: 1000
iteration: 853 of max_iter: 1000
iteration: 852 of max_iter: 1000
iteration: 853 of max_iter: 1000
iteration: 854 of max_iter: 1000
iteration: 855 of max_iter: 1000
iteration: 854 of max_iter: 1000
iteration: 855 of max_iter: 1000
iteration: 856 of max_iter: 1000
iteration: 857 of max_iter: 1000
iteration: 856 of max_iter: 1000
iteration: 857 of max_iter: 1000
iteration: 858 of max_iter: 1000
iteration: 859 of max_iter: 1000
iteration: 858 of max_iter: 1000
iteration: 859 of max_iter: 1000
iteration: 860 of max_iter: 1000
iteration: 861 of max_iter: 1000
iteration: 860 of max_iter: 1000
iteration: 861 of max_iter: 1000
iteration: 862 of max_iter: 1000
iteration: 863 of max_iter: 1000
iteration: 862 of max_iter: 1000
iteration: 863 of max_iter: 1000
iteration: 864 of max_iter: 1000
iteration: 865 of max_iter: 1000
iteration: 864 of max_iter: 1000
iteration: 865 of max_iter: 1000
iteration: 866 of max_iter: 1000
iteration: 867 of max_iter: 1000
iteration: 866 of max_iter: 1000
iteration: 867 of max_iter: 1000
iteration: 868 of max_iter: 1000
iteration: 869 of max_iter: 1000
iteration: 868 of max_iter: 1000
iteration: 869 of max_iter: 1000
iteration: 870 of max_iter: 1000
iteration: 871 of max_iter: 1000
iteration: 870 of max_iter: 1000
iteration: 871 of max_iter: 1000
iteration: 872 of max_iter: 1000
iteration: 873 of max_iter: 1000
iteration: 872 of max_iter: 1000
iteration: 873 of max_iter: 1000
iteration: 874 of max_iter: 1000
iteration: 875 of max_iter: 1000
iteration: 874 of max_iter: 1000
iteration: 875 of max_iter: 1000
iteration: 876 of max_iter: 1000
iteration: 877 of max_iter: 1000
iteration: 876 of max_iter: 1000
iteration: 877 of max_iter: 1000
iteration: 878 of max_iter: 1000
iteration: 879 of max_iter: 1000
iteration: 878 of max_iter: 1000
iteration: 879 of max_iter: 1000
iteration: 880 of max_iter: 1000
iteration: 881 of max_iter: 1000
iteration: 880 of max_iter: 1000
iteration: 881 of max_iter: 1000
iteration: 882 of max_iter: 1000
iteration: 883 of max_iter: 1000
iteration: 882 of max_iter: 1000
iteration: 883 of max_iter: 1000
iteration: 884 of max_iter: 1000
iteration: 885 of max_iter: 1000
iteration: 884 of max_iter: 1000
iteration: 885 of max_iter: 1000
iteration: 886 of max_iter: 1000
iteration: 887 of max_iter: 1000
iteration: 886 of max_iter: 1000
iteration: 887 of max_iter: 1000
iteration: 888 of max_iter: 1000
iteration: 889 of max_iter: 1000
iteration: 888 of max_iter: 1000
iteration: 889 of max_iter: 1000
iteration: 890 of max_iter: 1000
iteration: 890 of max_iter: 1000
iteration: 891 of max_iter: 1000
iteration: 892 of max_iter: 1000
iteration: 891 of max_iter: 1000
iteration: 892 of max_iter: 1000
iteration: 893 of max_iter: 1000
iteration: 894 of max_iter: 1000
iteration: 893 of max_iter: 1000
iteration: 894 of max_iter: 1000
iteration: 895 of max_iter: 1000
iteration: 896 of max_iter: 1000
iteration: 895 of max_iter: 1000
iteration: 896 of max_iter: 1000
iteration: 897 of max_iter: 1000
iteration: 898 of max_iter: 1000
iteration: 897 of max_iter: 1000
iteration: 898 of max_iter: 1000
iteration: 899 of max_iter: 1000
iteration: 900 of max_iter: 1000
iteration: 899 of max_iter: 1000
iteration: 900 of max_iter: 1000
iteration: 901 of max_iter: 1000
iteration: 902 of max_iter: 1000
iteration: 901 of max_iter: 1000
iteration: 902 of max_iter: 1000
iteration: 903 of max_iter: 1000
iteration: 904 of max_iter: 1000
iteration: 903 of max_iter: 1000
iteration: 904 of max_iter: 1000
iteration: 905 of max_iter: 1000
iteration: 906 of max_iter: 1000
iteration: 905 of max_iter: 1000
iteration: 906 of max_iter: 1000
iteration: 907 of max_iter: 1000
iteration: 908 of max_iter: 1000
iteration: 907 of max_iter: 1000
iteration: 908 of max_iter: 1000
iteration: 909 of max_iter: 1000
iteration: 910 of max_iter: 1000
iteration: 909 of max_iter: 1000
iteration: 910 of max_iter: 1000
iteration: 911 of max_iter: 1000
iteration: 912 of max_iter: 1000
iteration: 911 of max_iter: 1000
iteration: 912 of max_iter: 1000
iteration: 913 of max_iter: 1000
iteration: 914 of max_iter: 1000
iteration: 913 of max_iter: 1000
iteration: 914 of max_iter: 1000
iteration: 915 of max_iter: 1000
iteration: 916 of max_iter: 1000
iteration: 915 of max_iter: 1000
iteration: 916 of max_iter: 1000
iteration: 917 of max_iter: 1000
iteration: 917 of max_iter: 1000
iteration: 918 of max_iter: 1000
iteration: 919 of max_iter: 1000
iteration: 918 of max_iter: 1000
iteration: 919 of max_iter: 1000
iteration: 920 of max_iter: 1000
iteration: 921 of max_iter: 1000
iteration: 920 of max_iter: 1000
iteration: 921 of max_iter: 1000
iteration: 922 of max_iter: 1000
iteration: 923 of max_iter: 1000
iteration: 922 of max_iter: 1000
iteration: 923 of max_iter: 1000
iteration: 924 of max_iter: 1000
iteration: 924 of max_iter: 1000
iteration: 925 of max_iter: 1000
iteration: 926 of max_iter: 1000
iteration: 925 of max_iter: 1000
iteration: 926 of max_iter: 1000
iteration: 927 of max_iter: 1000
iteration: 928 of max_iter: 1000
iteration: 927 of max_iter: 1000
iteration: 928 of max_iter: 1000
iteration: 929 of max_iter: 1000
iteration: 930 of max_iter: 1000
iteration: 929 of max_iter: 1000
iteration: 930 of max_iter: 1000
iteration: 931 of max_iter: 1000
iteration: 932 of max_iter: 1000
iteration: 931 of max_iter: 1000
iteration: 932 of max_iter: 1000
iteration: 933 of max_iter: 1000
iteration: 934 of max_iter: 1000
iteration: 933 of max_iter: 1000
iteration: 934 of max_iter: 1000
iteration: 935 of max_iter: 1000
iteration: 936 of max_iter: 1000
iteration: 935 of max_iter: 1000
iteration: 936 of max_iter: 1000
iteration: 937 of max_iter: 1000
iteration: 938 of max_iter: 1000
iteration: 937 of max_iter: 1000
iteration: 938 of max_iter: 1000
iteration: 939 of max_iter: 1000
iteration: 940 of max_iter: 1000
iteration: 939 of max_iter: 1000
iteration: 940 of max_iter: 1000
iteration: 941 of max_iter: 1000
iteration: 942 of max_iter: 1000
iteration: 941 of max_iter: 1000
iteration: 942 of max_iter: 1000
iteration: 943 of max_iter: 1000
iteration: 944 of max_iter: 1000
iteration: 943 of max_iter: 1000
iteration: 944 of max_iter: 1000
iteration: 945 of max_iter: 1000
iteration: 946 of max_iter: 1000
iteration: 945 of max_iter: 1000
iteration: 946 of max_iter: 1000
iteration: 947 of max_iter: 1000
iteration: 948 of max_iter: 1000
iteration: 947 of max_iter: 1000
iteration: 948 of max_iter: 1000
iteration: 949 of max_iter: 1000
iteration: 950 of max_iter: 1000
iteration: 949 of max_iter: 1000
iteration: 950 of max_iter: 1000
iteration: 951 of max_iter: 1000
iteration: 952 of max_iter: 1000
iteration: 951 of max_iter: 1000
iteration: 952 of max_iter: 1000
iteration: 953 of max_iter: 1000
iteration: 954 of max_iter: 1000
iteration: 953 of max_iter: 1000
iteration: 954 of max_iter: 1000
iteration: 955 of max_iter: 1000
iteration: 956 of max_iter: 1000
iteration: 955 of max_iter: 1000
iteration: 956 of max_iter: 1000
iteration: 957 of max_iter: 1000
iteration: 958 of max_iter: 1000
iteration: 957 of max_iter: 1000
iteration: 958 of max_iter: 1000
iteration: 959 of max_iter: 1000
iteration: 960 of max_iter: 1000
iteration: 959 of max_iter: 1000
iteration: 960 of max_iter: 1000
iteration: 961 of max_iter: 1000
iteration: 962 of max_iter: 1000
iteration: 961 of max_iter: 1000
iteration: 962 of max_iter: 1000
iteration: 963 of max_iter: 1000
iteration: 964 of max_iter: 1000
iteration: 963 of max_iter: 1000
iteration: 964 of max_iter: 1000
iteration: 965 of max_iter: 1000
iteration: 966 of max_iter: 1000
iteration: 965 of max_iter: 1000
iteration: 966 of max_iter: 1000
iteration: 967 of max_iter: 1000
iteration: 968 of max_iter: 1000
iteration: 967 of max_iter: 1000
iteration: 968 of max_iter: 1000
iteration: 969 of max_iter: 1000
iteration: 970 of max_iter: 1000
iteration: 969 of max_iter: 1000
iteration: 970 of max_iter: 1000
iteration: 971 of max_iter: 1000
iteration: 972 of max_iter: 1000
iteration: 971 of max_iter: 1000
iteration: 972 of max_iter: 1000
iteration: 973 of max_iter: 1000
iteration: 974 of max_iter: 1000
iteration: 973 of max_iter: 1000
iteration: 974 of max_iter: 1000
iteration: 975 of max_iter: 1000
iteration: 976 of max_iter: 1000
iteration: 975 of max_iter: 1000
iteration: 976 of max_iter: 1000
iteration: 977 of max_iter: 1000
iteration: 978 of max_iter: 1000
iteration: 977 of max_iter: 1000
iteration: 978 of max_iter: 1000
iteration: 979 of max_iter: 1000
iteration: 980 of max_iter: 1000
iteration: 979 of max_iter: 1000
iteration: 980 of max_iter: 1000
iteration: 981 of max_iter: 1000
iteration: 982 of max_iter: 1000
iteration: 981 of max_iter: 1000
iteration: 982 of max_iter: 1000
iteration: 983 of max_iter: 1000
iteration: 984 of max_iter: 1000
iteration: 983 of max_iter: 1000
iteration: 984 of max_iter: 1000
iteration: 985 of max_iter: 1000
iteration: 986 of max_iter: 1000
iteration: 985 of max_iter: 1000
iteration: 986 of max_iter: 1000
iteration: 987 of max_iter: 1000
iteration: 988 of max_iter: 1000
iteration: 987 of max_iter: 1000
iteration: 988 of max_iter: 1000
iteration: 989 of max_iter: 1000
iteration: 990 of max_iter: 1000
iteration: 989 of max_iter: 1000
iteration: 990 of max_iter: 1000
iteration: 991 of max_iter: 1000
iteration: 992 of max_iter: 1000
iteration: 991 of max_iter: 1000
iteration: 992 of max_iter: 1000
iteration: 993 of max_iter: 1000
iteration: 994 of max_iter: 1000
iteration: 993 of max_iter: 1000
iteration: 994 of max_iter: 1000
iteration: 995 of max_iter: 1000
iteration: 996 of max_iter: 1000
iteration: 995 of max_iter: 1000
iteration: 996 of max_iter: 1000
iteration: 997 of max_iter: 1000
iteration: 998 of max_iter: 1000
iteration: 997 of max_iter: 1000
iteration: 998 of max_iter: 1000
iteration: 999 of max_iter: 1000
iteration: 1000 of max_iter: 1000
iteration: 999 of max_iter: 1000
iteration: 1000 of max_iter: 1000

✓ Model LDA berhasil dilatih dengan 30 topik

✓ Model LDA berhasil dilatih dengan 30 topik
# Tampilkan top words untuk setiap topik
def display_topics(model, feature_names, n_top_words=10):
    topics = []
    for topic_idx, topic in enumerate(model.components_):
        top_words_idx = topic.argsort()[-n_top_words:][::-1]
        top_words = [feature_names[i] for i in top_words_idx]
        topics.append((topic_idx, top_words))
    return topics

# Get feature names dari vectorizer
feature_names = vectorizer.get_feature_names_out()

# Tampilkan topik-topik
print("="*50)
print("TOP 10 KATA PER TOPIK")
print("="*50)

topics = display_topics(lda_model, feature_names, n_top_words=10)
for topic_idx, top_words in topics:
    print(f"\nTopik {topic_idx}:")
    print(", ".join(top_words))
==================================================
TOP 10 KATA PER TOPIK
==================================================

Topik 0:
harga, emas, rp, gram, antam, foto, gadai, fitur, liter, jual

Topik 1:
bumn, bp, bca, pppk, sim, status, posisi, layan, usaha, badan

Topik 2:
terima, nomor, wajib, undang, sosial, bantu, bansos, puasa, data, atur

Topik 3:
korea, indonesia, open, jepang, ajar, putra, hasil, wakil, alwi, tunggal

Topik 4:
polri, menteri, reformasi, tim, komite, bentuk, perintah, pers, kait, kembali

Topik 5:
tni, indonesia, olahraga, erick, jakarta, thohir, pesawat, anak, garuda, tambah

Topik 6:
listrik, tarif, subsidi, perintah, langgan, rp, pln, menteri, naik, masyarakat

Topik 7:
jakarta, jalan, tol, lintas, macet, kota, tutup, gerbang, kendara, gt

Topik 8:
bbm, spbu, shell, pertamina, bakar, bahan, mobil, milik, mesin, swasta

Topik 9:
bank, ballon, dembele, or, ojk, asuransi, uang, raih, perban, ousmane

Topik 10:
tani, desa, kabupaten, tambang, kawasan, jalan, sebut, nasional, tanah, masyarakat

Topik 11:
korban, sangka, laku, polisi, duga, hukum, lapor, polda, rumah, anak

Topik 12:
marquez, motogp, balap, juara, marc, dunia, gelar, posisi, hasil, jepang

Topik 13:
persib, main, united, fc, league, vs, laga, bandung, super, psm

Topik 14:
as, rp, dollar, rupiah, lemah, nilai, jakarta, rt, ai, juta

Topik 15:
mobil, motor, listrik, kendara, mesin, alternator, indonesia, milik, imos, unit

Topik 16:
dpr, ri, menteri, ruu, undang, ketua, komisi, dewan, kerja, wakil

Topik 17:
warga, sampah, lahan, kota, ton, tan, beras, juta, rp, tanah

Topik 18:
korban, al, bangun, evakuasi, khoziny, sidoarjo, ponpes, santri, tinggal, orang

Topik 19:
rumah, gempa, bal, timur, bmkg, tabung, warga, wilayah, jawa, vinfast

Topik 20:
kendara, jalan, mobil, guna, motor, milik, strobo, pakai, kemudi, ban

Topik 21:
mbg, makan, racun, siswa, sekolah, anak, gizi, program, dapur, menu

Topik 22:
kai, tiket, kereta, api, rp, promo, sale, layan, flash, september

Topik 23:
main, timnas, indonesia, fifa, piala, malaysia, latih, bola, dunia, sepak

Topik 24:
rp, perintah, daerah, masyarakat, kepala, anggar, dprd, program, dana, uang

Topik 25:
persen, indonesia, usaha, kerja, pasar, saham, industri, kuat, ekonomi, tingkat

Topik 26:
gol, menit, vs, ke, liga, laga, hasil, menang, tim, main

Topik 27:
mil, ac, sakinah, napoli, tepuk, sassuolo, inter, keluarga, italia, atap

Topik 28:
kerja, resmi, buka, daftar, program, hadir, lowong, honda, digital, rekrutmen

Topik 29:
prabowo, presiden, negara, indonesia, israel, pimpin, bangsa, pbb, suara, pidato

4.4 Ekstraksi Fitur: Transformasi Dokumen ke Distribusi Topik (θ)#

# Transform dokumen menjadi distribusi topik
# Setiap dokumen akan direpresentasikan sebagai vektor probabilitas topik
X_train_lda = lda_model.transform(X_train_counts)
X_test_lda = lda_model.transform(X_test_counts)

print("="*50)
print("EKSTRAKSI FITUR LDA")
print("="*50)
print(f"Bentuk fitur LDA training: {X_train_lda.shape}")
print(f"Bentuk fitur LDA testing: {X_test_lda.shape}")
print(f"\nSetiap dokumen kini direpresentasikan sebagai vektor dengan {optimal_topics} dimensi")
print("(probabilitas dokumen terkait dengan setiap topik)")

# Contoh distribusi topik untuk dokumen pertama
print(f"\n" + "="*50)
print("CONTOH DISTRIBUSI TOPIK DOKUMEN PERTAMA")
print("="*50)
for i, prob in enumerate(X_train_lda[0]):
    print(f"Topik {i}: {prob:.4f}")
    
print(f"\nTotal probabilitas: {X_train_lda[0].sum():.4f} (harus = 1.0)")
==================================================
EKSTRAKSI FITUR LDA
==================================================
Bentuk fitur LDA training: (960, 30)
Bentuk fitur LDA testing: (240, 30)

Setiap dokumen kini direpresentasikan sebagai vektor dengan 30 dimensi
(probabilitas dokumen terkait dengan setiap topik)

==================================================
CONTOH DISTRIBUSI TOPIK DOKUMEN PERTAMA
==================================================
Topik 0: 0.0002
Topik 1: 0.0002
Topik 2: 0.0002
Topik 3: 0.0002
Topik 4: 0.0002
Topik 5: 0.0002
Topik 6: 0.0002
Topik 7: 0.0002
Topik 8: 0.0002
Topik 9: 0.0002
Topik 10: 0.0002
Topik 11: 0.0002
Topik 12: 0.0002
Topik 13: 0.0002
Topik 14: 0.2945
Topik 15: 0.0002
Topik 16: 0.0002
Topik 17: 0.0002
Topik 18: 0.0002
Topik 19: 0.0002
Topik 20: 0.0002
Topik 21: 0.0002
Topik 22: 0.0002
Topik 23: 0.0002
Topik 24: 0.0002
Topik 25: 0.7000
Topik 26: 0.0002
Topik 27: 0.0002
Topik 28: 0.0002
Topik 29: 0.0002

Total probabilitas: 1.0000 (harus = 1.0)

5. Pelatihan Model Klasifikasi (SVM)#

Melatih SVM menggunakan fitur LDA yang sudah diekstraksi.

# Latih SVM dengan fitur LDA
print("="*50)
print("MELATIH MODEL SVM DENGAN FITUR LDA")
print("="*50)

svm_lda = SVC(kernel='rbf', random_state=42, verbose=True)
svm_lda.fit(X_train_lda, y_train)

print("\n✓ Model SVM berhasil dilatih dengan fitur LDA")
==================================================
MELATIH MODEL SVM DENGAN FITUR LDA
==================================================
[LibSVM]
✓ Model SVM berhasil dilatih dengan fitur LDA
# Prediksi pada data testing
y_pred_lda = svm_lda.predict(X_test_lda)

print("="*50)
print("PREDIKSI SELESAI")
print("="*50)
print(f"Jumlah prediksi: {len(y_pred_lda)}")
print(f"\nContoh 10 prediksi pertama:")
for i in range(10):
    print(f"Aktual: {y_test[i]:15} | Prediksi: {y_pred_lda[i]}")
==================================================
PREDIKSI SELESAI
==================================================
Jumlah prediksi: 240

Contoh 10 prediksi pertama:
Aktual: BOLA            | Prediksi: OTOMOTIF
Aktual: PROV            | Prediksi: PROV
Aktual: REGIONAL        | Prediksi: PROV
Aktual: NEWS            | Prediksi: REGIONAL
Aktual: PROV            | Prediksi: REGIONAL
Aktual: MONEY           | Prediksi: MONEY
Aktual: MONEY           | Prediksi: MONEY
Aktual: MONEY           | Prediksi: MONEY
Aktual: BOLA            | Prediksi: BOLA
Aktual: PROV            | Prediksi: REGIONAL

6. Evaluasi Hasil Klasifikasi (LDA + SVM)#

# Classification Report
print("\n" + "="*50)
print("CLASSIFICATION REPORT (LDA + SVM)")
print("="*50)
print(classification_report(y_test, y_pred_lda, zero_division=0))
==================================================
CLASSIFICATION REPORT (LDA + SVM)
==================================================
              precision    recall  f1-score   support

        BOLA       0.90      0.88      0.89        40
       MONEY       0.85      0.82      0.84        40
        NEWS       0.58      0.55      0.56        40
    OTOMOTIF       0.84      0.93      0.88        40
        PROV       0.52      0.33      0.40        40
    REGIONAL       0.51      0.70      0.59        40

    accuracy                           0.70       240
   macro avg       0.70      0.70      0.69       240
weighted avg       0.70      0.70      0.69       240
# Confusion Matrix
cm_lda = confusion_matrix(y_test, y_pred_lda)

plt.figure(figsize=(10, 8))
sns.heatmap(cm_lda, annot=True, fmt='d', cmap='Blues', 
            xticklabels=sorted(set(y_test)), 
            yticklabels=sorted(set(y_test)))
plt.title('Confusion Matrix (LDA + SVM)', fontsize=14, fontweight='bold')
plt.ylabel('Aktual', fontsize=12)
plt.xlabel('Prediksi', fontsize=12)
plt.tight_layout()
plt.show()
../../_images/7d4710435be138d40bae392b516ca7711c3e3182b98932abdb8058d4ed28261f.png

7. Perbandingan dengan TF-IDF (Baseline)#

Untuk menunjukkan efektivitas LDA, kita akan membandingkan hasilnya dengan metode TF-IDF sebagai baseline.

7.1 Ekstraksi Fitur dengan TF-IDF#

# Ekstraksi fitur dengan TF-IDF
print("="*50)
print("EKSTRAKSI FITUR DENGAN TF-IDF")
print("="*50)

tfidf_vectorizer = TfidfVectorizer(
    min_df=5,
    max_df=0.8,
    max_features=5000
)

X_train_tfidf = tfidf_vectorizer.fit_transform(X_train_text)
X_test_tfidf = tfidf_vectorizer.transform(X_test_text)

print(f"Bentuk fitur TF-IDF training: {X_train_tfidf.shape}")
print(f"Bentuk fitur TF-IDF testing: {X_test_tfidf.shape}")
print(f"\n✓ Ekstraksi fitur TF-IDF selesai")
==================================================
EKSTRAKSI FITUR DENGAN TF-IDF
==================================================
Bentuk fitur TF-IDF training: (960, 3663)
Bentuk fitur TF-IDF testing: (240, 3663)

✓ Ekstraksi fitur TF-IDF selesai
Bentuk fitur TF-IDF training: (960, 3663)
Bentuk fitur TF-IDF testing: (240, 3663)

✓ Ekstraksi fitur TF-IDF selesai

7.2 Pelatihan SVM dengan Fitur TF-IDF#

# Latih SVM dengan fitur TF-IDF
print("="*50)
print("MELATIH MODEL SVM DENGAN FITUR TF-IDF")
print("="*50)

svm_tfidf = SVC(kernel='rbf', random_state=42, verbose=True)
svm_tfidf.fit(X_train_tfidf, y_train)

print("\n✓ Model SVM berhasil dilatih dengan fitur TF-IDF")

# Prediksi
y_pred_tfidf = svm_tfidf.predict(X_test_tfidf)
print("✓ Prediksi selesai")
==================================================
MELATIH MODEL SVM DENGAN FITUR TF-IDF
==================================================
[LibSVM]
✓ Model SVM berhasil dilatih dengan fitur TF-IDF

✓ Model SVM berhasil dilatih dengan fitur TF-IDF
✓ Prediksi selesai
✓ Prediksi selesai

7.3 Evaluasi Hasil TF-IDF#

# Classification Report untuk TF-IDF
print("\n" + "="*50)
print("CLASSIFICATION REPORT (TF-IDF + SVM)")
print("="*50)
print(classification_report(y_test, y_pred_tfidf, zero_division=0))
==================================================
CLASSIFICATION REPORT (TF-IDF + SVM)
==================================================
              precision    recall  f1-score   support

        BOLA       0.90      0.88      0.89        40
       MONEY       0.89      0.82      0.86        40
        NEWS       0.72      0.82      0.77        40
    OTOMOTIF       0.88      0.95      0.92        40
        PROV       0.62      0.40      0.48        40
    REGIONAL       0.67      0.82      0.74        40

    accuracy                           0.78       240
   macro avg       0.78      0.78      0.78       240
weighted avg       0.78      0.78      0.78       240
# Confusion Matrix untuk TF-IDF
cm_tfidf = confusion_matrix(y_test, y_pred_tfidf)

plt.figure(figsize=(10, 8))
sns.heatmap(cm_tfidf, annot=True, fmt='d', cmap='Greens', 
            xticklabels=sorted(set(y_test)), 
            yticklabels=sorted(set(y_test)))
plt.title('Confusion Matrix (TF-IDF + SVM)', fontsize=14, fontweight='bold')
plt.ylabel('Aktual', fontsize=12)
plt.xlabel('Prediksi', fontsize=12)
plt.tight_layout()
plt.show()
../../_images/81261429ce3b69f181d8caf3a3acdb1efb9764e3329c1d09b24614fd9e1ea924.png