Skip to content

Commit

Permalink
r.learn.ml: fix deprecated joblib import
Browse files Browse the repository at this point in the history
completes  #324
  • Loading branch information
neteler committed Oct 29, 2020
1 parent e02cc27 commit 08b38c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grass7/raster/r.learn.ml/r.learn.ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def save_model(estimator, X, y, sample_coords, groups, filename):


def load_model(filename):
from sklearn.externals import joblib
import joblib
estimator, X, y, sample_coords, groups = joblib.load(filename)

return (estimator, X, y, sample_coords, groups)
Expand Down Expand Up @@ -1399,7 +1399,7 @@ def warn(*args, **kwargs):

def main():
try:
from sklearn.externals import joblib
import joblib
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import (
Expand Down

0 comments on commit 08b38c3

Please sign in to comment.