Skip to content

Commit 31bee6e

Browse files
author
Vianney Taquet
committed
Last update on notebook
1 parent 5c0c536 commit 31bee6e

File tree

2 files changed

+141
-121
lines changed

2 files changed

+141
-121
lines changed

notebooks/regression/exoplanets.ipynb

Lines changed: 139 additions & 119 deletions
Large diffs are not rendered by default.

notebooks/regression/exoplanets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ warnings.filterwarnings("ignore")
6262
Let's start by loading the `exoplanets` dataset and looking at the main information.
6363

6464
```python
65-
url_file = "https://raw.githubusercontent.com/scikit-learn-contrib/MAPIE/master/notebooks/regression/exoplanets_mass.csv"
65+
url_file = "https://raw.githubusercontent.com/scikit-learn-contrib/MAPIE/exoplanet-notebook/notebooks/regression/exoplanets_mass.csv"
6666
exo_df = pd.read_csv(url_file, index_col=0)
6767
```
6868

@@ -76,7 +76,7 @@ The dataset contains 21 features giving complementary information about the prop
7676
Some properties show high variance among exoplanets and stars due to the astronomical nature of such systems. We therefore decide to use a log transformation for the following features to approach a normal distribution.
7777

7878
```python
79-
exo_df["Stellar_Mass_[Solar_mass]"].loc[exo_df["Stellar_Mass_[Solar_mass]"] == 0] = np.nan
79+
exo_df["Stellar_Mass_[Solar_mass]"] = exo_df["Stellar_Mass_[Solar_mass]"].replace(0, np.nan)
8080
vars2log = [
8181
"Planet_Orbital_Period_[day]",
8282
"Planet_Orbital_SemiMajorAxis_[day]",

0 commit comments

Comments
 (0)