Skip to content

Commit 1cd96c3

Browse files
authored
* Improved typing in the example notebook. (#117)
* Added support to open the notebook directly in Google Colab and Mineo.
1 parent 84c5519 commit 1cd96c3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ __verbose__ : int, default=0
175175

176176
## Examples ##
177177

178+
[![Open example notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/https://raw.githubusercontent.com/scikit-learn-contrib/boruta_py/master/boruta/examples/Madalon_Data_Set.ipynb)
179+
[![Open example notebook](https://b.mineo.app/static/img/open_in_mineo.svg)](https://b.mineo.app/import/https://raw.githubusercontent.com/scikit-learn-contrib/boruta_py/master/boruta/examples/Madalon_Data_Set.ipynb)
180+
178181
```python
179182
import pandas as pd
180183
from sklearn.ensemble import RandomForestClassifier

boruta/examples/Madalon_Data_Set.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"### Using Boruta on the Madalon Data Set\n",
88
"Author: [Mike Bernico]([email protected])\n",
99
"\n",
10-
"This example demonstrates using Boruta to find all relevant features in the Madalon dataset, which is an artificial dataset used in NIPS2003 and cited in the [Boruta paper](https://www.jstatsoft.org/article/view/v036i11/v36i11.pdf)\n",
10+
"This example demonstrates using Boruta to find all relevant features in the Madalon dataset, which is an artificial dataset used in NIPS2003 and cited in the [Boruta paper](https://www.jstatsoft.org/article/view/v036i11/v36i11.pdf).\n",
1111
"\n",
1212
"This dataset has 2000 observations and 500 features. We will use Boruta to identify the features that are relevant to the classification task.\n",
1313
"\n",
@@ -24,7 +24,7 @@
2424
"outputs": [],
2525
"source": [
2626
"# Installation\n",
27-
"#!pip install boruta"
27+
"!pip install boruta"
2828
]
2929
},
3030
{
@@ -271,9 +271,9 @@
271271
"cell_type": "markdown",
272272
"metadata": {},
273273
"source": [
274-
"Boruta conforms to the sklearn api and can be used in a Pipeline as well as on it's own. Here we will demonstrate stand alone operation.\n",
274+
"Boruta conforms to the sklearn api and can be used in a Pipeline as well as on it's own. Here we will demonstrate stand-alone operation.\n",
275275
"\n",
276-
"First we will instantiate an estimator that Boruta will use. Then we will instantiate a Boruta Object."
276+
"First we will instantiate an estimator that Boruta will use. Then we will instantiate a Boruta Object."
277277
]
278278
},
279279
{
@@ -309,9 +309,9 @@
309309
"cell_type": "markdown",
310310
"metadata": {},
311311
"source": [
312-
"Boruta has confirmed only a few features as useful. When our run ended, Boruta was undecided on 2 features. '\n",
312+
"Boruta has confirmed only a few features as useful. When our run ended, Boruta was undecided on 2 features.\n",
313313
"\n",
314-
"We can interrogate .support_ to understand which features were selected. .support_ returns an array of booleans that we can use to slice our feature matrix to include only relevant columns. Of course, .transform can also be used, as expected in the scikit API."
314+
"We can interrogate `.support_` to understand which features were selected. `.support_` returns an array of booleans that we can use to slice our feature matrix to include only relevant columns. Of course, `.transform` can also be used, as expected in the scikit API."
315315
]
316316
},
317317
{

0 commit comments

Comments
 (0)