Skip to content

Commit

Permalink
v3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Karasiak committed Jun 29, 2018
1 parent 8e63772 commit 2772f42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name=dzetsaka : Classification tool
qgisMinimumVersion=3.0
description=Fast and Easy Classification plugin for Qgis
version=3.2
version=3.3
author=Nicolas Karasiak
[email protected]

Expand All @@ -30,7 +30,7 @@ repository=http://www.github.com/lennepkade/dzetsaka
# Uncomment the following line and add your changelog:
changelog=
3.3
* Correct error when chaining in Processing Toolbox
* Correct error when chaining with dzetsaka in Processing Toolbox
3.2
* Add Domain Adaptation in Processing Toolbox (thanks to POT library)
* In the settings box, you can choose to have experimental function in the Processing Toolbox
Expand Down
14 changes: 7 additions & 7 deletions scripts/domainAdaptation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
from mainfunction import pushFeedback


try:
from sklearn.metrics import mean_squared_error
from itertools import product
from sklearn.metrics import (f1_score, cohen_kappa_score,accuracy_score)
except:
raise ImportError('Please install itertools and scikit-learn')

import gdal
#import tempfile
Expand Down Expand Up @@ -49,7 +43,13 @@ class rasterOT(object):
"""
def __init__(self,transportAlgorithm="MappingTransport",scaler=False,params=None,feedback=True):

try:
from sklearn.metrics import mean_squared_error
from itertools import product
from sklearn.metrics import (f1_score, cohen_kappa_score,accuracy_score)
except:
raise ImportError('Please install itertools and scikit-learn')

self.transportAlgorithm = transportAlgorithm
self.feedback = feedback

Expand Down

0 comments on commit 2772f42

Please sign in to comment.