Skip to content

Commit

Permalink
correct test protocol and update example
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarasiak committed Jul 15, 2020
1 parent f28f0a9 commit ba3344a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Update groups management for sklearn>=0.25
- Fixed bug with path to datasets on windows (thanks @obernardoff)
- Fixed bug with raster/vector datasets (mtb.datasets.load_historical_data())

## [0.13.5] - 2020-06-24

Expand Down
2 changes: 1 addition & 1 deletion examples/cross_validation/SpatialLeaveAsideOut.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Load HistoricalMap dataset
# -------------------------------------------

raster,vector = datasets.load_historical_data(low_res=True)
raster,vector = datasets.load_historical_data()
field = 'Class'
X,y = processing.extract_ROI(raster,vector,field)
distance_matrix = processing.get_distance_matrix(raster,vector)
Expand Down
2 changes: 1 addition & 1 deletion museotoolbox/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
`MuseoToolBox`.
"""
import os
__pathFile = os.path.dirname(os.path.realpath(__file__)).replace("\\","/")

__pathFile = os.path.dirname(os.path.realpath(__file__)).replace("\\","/")

def load_historical_data(return_X_y=False, return_X_y_g=False,
centroid=False, low_res=False):
Expand Down

0 comments on commit ba3344a

Please sign in to comment.