Skip to content

Commit 93ba731

Browse files
Update kececi_layout.py
1 parent 977f67a commit 93ba731

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

kececilayout/kececi_layout.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(self):
105105
}
106106

107107
def perfect_kececi(self, G):
108-
"""🦙 MÜKEMMEL KEÇECİ"""
108+
"""🦙 MÜKEMMEL Keçeci"""
109109
nodes = sorted(G.nodes())
110110
pos = {}
111111
for i, node in enumerate(nodes):
@@ -164,7 +164,7 @@ def champion_zz_score(self, G, pos):
164164
}
165165

166166
def final_champion_test(self):
167-
"""FINAL KEÇECİ ŞAMPİYONLARI"""
167+
"""FINAL Skor"""
168168
graphs = {
169169
'path_50': nx.path_graph(50),
170170
'sawtooth_45': self._sawtooth_extreme(45),
@@ -178,7 +178,7 @@ def final_champion_test(self):
178178
'spring': lambda G: nx.spring_layout(G, seed=42, iterations=50)
179179
}
180180

181-
print("KEÇECİ ZZ SKORU")
181+
print("Keçeci ZZ SKORU")
182182
print("="*60)
183183

184184
results = {}
@@ -233,7 +233,7 @@ def __init__(self):
233233
self.posterior = {}
234234
self.best_params = None
235235

236-
# 🦙 KEÇECİ ZZ SCORING
236+
# 🦙 Keçeci ZZ SCORING
237237
self.kececi_spec = {
238238
'x_spacing': 0.85,
239239
'sin_freq': 0.714, # π/2.2
@@ -263,7 +263,7 @@ def generate_test_suite(self, n_graphs: int = 20) -> List[nx.Graph]:
263263
return graphs
264264

265265
def champion_zz_score(self, G: nx.Graph, pos: Dict) -> Dict:
266-
"""🏆 KEÇECİ ZZ"""
266+
"""🏆 Keçeci ZZ"""
267267
nodes_x = sorted(G.nodes(), key=lambda n: pos[n][0])
268268
xs = np.array([pos[n][0] for n in nodes_x])
269269
ys = np.array([pos[n][1] for n in nodes_x])
@@ -302,7 +302,7 @@ def champion_zz_score(self, G: nx.Graph, pos: Dict) -> Dict:
302302
}
303303

304304
def kececi_layout(self, G, params: Dict) -> Dict:
305-
"""🦙 KEÇECİ BAYESÇİ LAYOUT"""
305+
"""🦙 Keçeci Bayesian Layout"""
306306
x_spacing = params.get('x_spacing', 0.85)
307307
sin_freq = params.get('sin_freq', 0.714)
308308
y_amp = params.get('y_amp', 1.4)
@@ -332,7 +332,7 @@ def bayesian_acquisition(self, zz_history: List[float], n_samples: int = 100) ->
332332

333333
def optimize_kececi_bayes(self, graphs: List[Tuple[str, nx.Graph]], n_iters: int = 50):
334334
"""🔬 BAYESIAN OPTIMIZATION"""
335-
print("🦙 KEÇECİ BAYESÇİ ÖĞRENME BAŞLADI")
335+
print("🦙 Keçeci Bayesian Öğrenme Başladı")
336336
print("="*60)
337337

338338
# Initial random search
@@ -375,7 +375,7 @@ def optimize_kececi_bayes(self, graphs: List[Tuple[str, nx.Graph]], n_iters: int
375375
return history
376376

377377
def visualize_bayesian_learning(self, history: List[Tuple[Dict, float]]):
378-
"""📊 BAYESÇİ ÖĞRENME GÖRSELLEŞTİRME"""
378+
"""📊 Bayesian Öğrenme Görselleştirmesi"""
379379
fig, axes = plt.subplots(2, 3, figsize=(18, 12))
380380

381381
zz_scores = [h[1] for h in history]
@@ -434,7 +434,7 @@ def visualize_bayesian_learning(self, history: List[Tuple[Dict, float]]):
434434
axes[1,2].set_xticks(range(len(layouts)))
435435
axes[1,2].set_xticklabels(layouts.keys(), rotation=45)
436436

437-
plt.suptitle('🦙 KEÇECİ BAYESÇİ ZİG-ZAG ÖĞRENİCİSİ v1.0', fontsize=16, fontweight='bold')
437+
plt.suptitle('🦙 Keçeci Bayesian Zig-Zag Öğrencisi v1.0', fontsize=16, fontweight='bold')
438438
plt.tight_layout()
439439
plt.show()
440440

@@ -4708,12 +4708,12 @@ def _generate_labels(graph, periodic_elements):
47084708
def kececi_barbell_layout(G, primary_spacing=1.5, secondary_spacing=0.8,
47094709
primary_direction='horizontal', debug=False):
47104710
"""
4711-
KEÇECİ BARBELL LAYOUT v3.0 - %100 NODE KAPSAMA GARANTİSİ
4711+
Keçeci Barbell Layout - %100 NODE KAPSAMA GARANTİSİ
47124712
kececilayout.draw_kececi ile uyumlu
47134713
"""
47144714

47154715
if debug:
4716-
print("🔍 KEÇECİ BARBELL LAYOUT v3.0 - %100 KAPSAMA")
4716+
print("🔍 Keçeci Barbell Layout- %100 KAPSAMA")
47174717

47184718
pos = {}
47194719
nodes = sorted(G.nodes())

0 commit comments

Comments
 (0)