Skip to content

Commit

Permalink
Fix logos on doc landing page (#153)
Browse files Browse the repository at this point in the history
* FIX: logos sizes in mkdocs landing page
  • Loading branch information
VincentAuriau authored Aug 26, 2024
1 parent 082deee commit 0a67406
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 44 deletions.
2 changes: 2 additions & 0 deletions choice_learn/models/latent_class_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def fit(self, choice_dataset, sample_weight=None, verbose=0):
return self._fit_with_lbfgs(
choice_dataset=choice_dataset, sample_weight=sample_weight, verbose=verbose
)

if self.optimizer.lower() == "adam":
self.optimizer = tf.keras.optimizers.Adam(self.lr)
elif self.optimizer.lower() == "sgd":
Expand Down Expand Up @@ -640,6 +641,7 @@ def _fit_with_gd(
)

train_logs["train_loss"].append(neg_loglikelihood)

# temps_logs = {k: tf.reduce_mean(v) for k, v in train_logs.items()}
# self.callbacks.on_train_batch_end(batch_nb, logs=temps_logs)

Expand Down
55 changes: 16 additions & 39 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,42 +127,19 @@ The use of this software is under the MIT license, with no limitation of usage,

Choice-Learn has been developed through a collaboration between researchers at the Artefact Research Center and the laboratory MICS from CentraleSupélec, Université Paris Saclay.

<figure markdown>

![Elements](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_arc.png){: style="height:60px"}

![Dandi](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_atf.png){: style="height:60px"}
</figure>

<p align="center">
<a href="https://www.artefact.com/data-consulting-transformation/artefact-research-center/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_arc.png" height="60" />
</a>
&emsp;
&emsp;
<a href="https://www.artefact.com/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_atf.png" height="65" />

</a>
</p>

<p align="center">
<a href="https://www.universite-paris-saclay.fr/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_paris_saclay.png" height="60" />
</a>
&emsp;
&emsp;
<a href="https://mics.centralesupelec.fr/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_CS.png" height="60" />
</a>
&emsp;
&emsp;
<a href="https://www.london.edu/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_lbs.jpeg" height="60" />
</a>
&emsp;
&emsp;
<a href="https://www.insead.edu/">
<img src="https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_insead.png" height="60" />
</a>
</p>
<center>
[![ARC](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_arc.png){: style="height:60px"}](https://www.artefact.com/data-consulting-transformation/artefact-research-center/)
&nbsp;&nbsp;&nbsp;&nbsp;
[![FNG](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_atf.png){: style="height:65px"}](https://www.artefact.com/)

[![PS](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_paris_saclay.png){: style="height:60px"}](https://www.universite-paris-saclay.fr/)
&nbsp;&nbsp;&nbsp;&nbsp;
[![CS](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_CS.png){: style="height:65px"}](https://mics.centralesupelec.fr/)
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
[![LBS](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_lbs.jpeg){: style="height:60px"}](https://www.london.edu/)
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
[![INSEAD](https://raw.githubusercontent.com/artefactory/choice-learn/main/docs/illustrations/logos/logo_insead.png){: style="height:65px"}](https://www.insead.edu/)

</center>
1 change: 1 addition & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ theme:
favicon: logo_choice_learn.png

markdown_extensions:
- attr_list
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
Expand Down
10 changes: 5 additions & 5 deletions notebooks/models/latent_class_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"metadata": {},
"outputs": [],
"source": [
"lc_model = LatentClassSimpleMNL(n_latent_classes=3, fit_method=\"mle\", optimizer=\"lbfgs\", epochs=1000, tolerance=1e-10)\n",
"hist = lc_model.fit(elec_dataset, verbose=1)"
"lc_model = LatentClassSimpleMNL(n_latent_classes=3, fit_method=\"mle\", optimizer=\"lbfgs\", epochs=1000, tolerance=1e-20)\n",
"hist, results = lc_model.fit(elec_dataset, verbose=1)"
]
},
{
Expand All @@ -85,8 +85,8 @@
"metadata": {},
"outputs": [],
"source": [
"print(\"Negative Log-Likelihood:\")\n",
"lc_model.evaluate(elec_dataset) * len(elec_dataset)"
"nll = (lc_model.evaluate(elec_dataset) * len(elec_dataset)).numpy()\n",
"print(f\"Negative Log-Likelihood: {nll}\")"
]
},
{
Expand Down Expand Up @@ -277,7 +277,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.8.18"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0a67406

Please sign in to comment.