Skip to content

Commit

Permalink
add autorun
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom committed Aug 9, 2023
1 parent cf66e3f commit cce99f4
Show file tree
Hide file tree
Showing 178 changed files with 9,966 additions and 9,501 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message: This issue will be automatically closed by GitHub Actions in 1 week if there is no further activity.'
stale-pr-message: 'Stale pull request message: This PR will be automatically closed by GitHub Actions in 1 week if there is no further activity.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
exempt-issue-labels: 'bug,enhancement,help wanted'
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ on top of this section to run this example yourself.

Make the necessary imports and load the data.

```pycon
```python
import pandas as pd
from atom import ATOMClassifier

Expand All @@ -139,7 +139,7 @@ are convenient wrappers for the whole machine learning pipeline. Contrary
to sklearn's API, they are initialized providing the data you want to
manipulate.

```pycon
```python
atom = ATOMClassifier(X, y="RainTomorrow", n_rows=1000, verbose=2)
```

Expand All @@ -150,7 +150,7 @@ instance, fit it on the training set and transform the whole dataset.
The transformations are applied immediately after calling the method
(no fit and transform commands necessary).

```pycon
```python
atom.impute(strat_num="median", strat_cat="most_frequent")
atom.encode(strategy="Target", max_onehot=8)
```
Expand All @@ -161,13 +161,13 @@ method. Here, we fit both a [LinearDiscriminantAnalysis](https://tvdboom.github.
and [AdaBoost](https://tvdboom.github.io/ATOM/latest/API/models/adab) model,
and apply [hyperparameter tuning](https://tvdboom.github.io/ATOM/latest/user_guide/training/#hyperparameter-tuning).

```pycon
```python
atom.run(models=["LDA", "AdaB"], metric="auc", n_trials=10)
```

And lastly, analyze the results.

```pycon
```python
atom.evaluate()
```

Expand Down
Loading

0 comments on commit cce99f4

Please sign in to comment.