To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 87e971eb authored by Ami's avatar Ami
Browse files

str bug fix

parent e4578fc9
......@@ -206,7 +206,7 @@ class DeterministicAnnealingClustering(skl.base.BaseEstimator,
if c == 0:
continue
plt.text((region[c]['min'] + region[c]['max']) / 2, 0.2,
f'K={c}', rotation=90)
'K={}'.format(c), rotation=90)
plt.axvspan(region[c]['min'], region[c]['max'], color='C' + str(c),
alpha=0.2)
plt.title('Phases diagram (log)')
......
......@@ -129,11 +129,11 @@
</p>
%% Cell type:markdown id: tags:
<ul style="background-color:#adebad;">
Produce a phase diagram plot of the expected distortion D, as shown in figure 2 of reference [1]. For this, extend DAC.fit to save the expected distortion during annealing as an additional attribute self.distortion.
For this, extend DAC.fit to save the expected distortion during annealing as an additional attribute self.distortion.
You might also want to save the number of effective clusters and the temperature along the way.
</ul>
</p>
#### extend DAC.fit(self, X):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment