Skip to content

Commit c5379af

Browse files
Release v0.7 (#115)
* test on py310 * test on py39 * fix deprecated base_estimator * bump version
1 parent 0dc01e2 commit c5379af

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

.github/workflows/docbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.7]
12+
python-version: [3.9]
1313

1414
steps:
1515
- name: Checkout repo

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.7, 3.8]
12+
python-version: [3.9]
1313

1414
steps:
1515
- uses: actions/checkout@v1

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ implemented in scikit-learn random forest regression or classification objects.
1515
The core functions calculate an in-bag and error bars for random forest
1616
objects.
1717

18-
Compatible with Python2.7 and Python3.6
19-
2018
This module is based on R code from Stefan Wager (see important links below)
2119
and is licensed under the MIT open source license (see [LICENSE](LICENSE))
2220

examples/plot_mpg_svr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Create RandomForestRegressor
4040
n_estimators = 1000
4141
mpg_bagger = BaggingRegressor(
42-
base_estimator=SVR(), n_estimators=n_estimators, random_state=42
42+
estimator=SVR(), n_estimators=n_estimators, random_state=42
4343
)
4444
mpg_bagger.fit(mpg_X_train, mpg_y_train)
4545
mpg_y_hat = mpg_bagger.predict(mpg_X_test)

forestci/tests/test_forestci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_bagging_svr_error():
9191
X_train = X[train_idx]
9292

9393
n_trees = 4
94-
bagger = BaggingRegressor(base_estimator=SVR(), n_estimators=n_trees)
94+
bagger = BaggingRegressor(estimator=SVR(), n_estimators=n_trees)
9595
bagger.fit(X_train, y_train)
9696
inbag = fci.calc_inbag(X_train.shape[0], bagger)
9797
for ib in [inbag, None]:

forestci/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
_version_major = 0
33
_version_minor = 7
44
_version_micro = '' # use '' for first of series, number for 1 and above
5-
_version_extra = 'dev'
5+
_version_extra = ''
66
# _version_extra = '' # Uncomment this for full releases
77

88
# Construct full version string from these.

0 commit comments

Comments
 (0)