Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jpramil committed Jan 14, 2025
2 parents 73ef1a4 + 6080bf6 commit 078fce9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
11 changes: 2 additions & 9 deletions applications/ape.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,7 @@ def write_training_data(df, params, training_data_path=None):
return training_data_path.as_posix()
```

::: {.cell .markdown}
```{=html}
<div class="alert alert-success" role="alert">
<h3 class="alert-heading"><i class="fa-solid fa-pencil"></i> Exercice 2 </h3>
```
::: {.exercise}

1. Découper notre échantillon complet en _train_ et _test_.
2. `fastText` effectue son entraînement à partir d'objets stockés
Expand Down Expand Up @@ -326,9 +322,6 @@ pour chaque descriptif d'activités. Evaluer la performance globale
et la performance classe par classe, par exemple en calculant le rappel (pour les classes de plus
de 200 cas).

```{=html}
</div>
```
:::

```{python}
Expand Down Expand Up @@ -378,7 +371,7 @@ import fasttext
model = fasttext.train_supervised(
training_data_path,
**params,
lr=0.005,
lr=0.5,
verbose=2
)
```
Expand Down
2 changes: 2 additions & 0 deletions applications/app1-init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

mkdir -p appli1
chown -R onyxia:users appli1
cd appli1

echo "data/" >> .gitignore
git init
git branch -m main
Expand Down
20 changes: 20 additions & 0 deletions custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*-- Importing fa icons --*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/*-- scss:defaults --*/

/*-- scss:rules --*/

div.callout-exercise.callout {
border-left-color: #9e6790;
}

div.callout-exercise.callout-style-default > .callout-header {
background-color: #fab2e8;
}

.callout-exercise > .callout-header::before {
font-family: "Font Awesome 5 Free";
content: "\f303";
margin-right: 10px;
}

0 comments on commit 078fce9

Please sign in to comment.