Historical Map  1.0
Plugin for automatic extraction of old forest from historical map
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
HistoricalMap.function_historical_map.learnModel Class Reference

Learn model with a shp file and a raster image. More...

Collaboration diagram for HistoricalMap.function_historical_map.learnModel:
Collaboration graph

Public Member Functions

def __init__
 
def scale
 Function that standardize the data. More...
 

Detailed Description

Learn model with a shp file and a raster image.

Input : inRaster : Filtered image name ('sample_filtered.tif',str). inVector : Name of the training shpfile ('training.shp',str). inField : Column name where are stored class number (str). inSplit : (int). inSeed : (int). outModel : Name of the model to save, will be compulsory for the 3rd step (classifying). outMatrix : Default the name of the file inRaster(minus the extension)_inClassifier_inSeed_confu.csv (str). inClassifier : GMM,KNN,SVM, or RF. (str).

Output : Model file. Confusion Matrix.

Definition at line 114 of file function_historical_map.py.

Constructor & Destructor Documentation

def HistoricalMap.function_historical_map.learnModel.__init__ (   self,
  inRaster,
  inVector,
  inField = 'Class',
  inSplit = 0.5,
  inSeed = 0,
  outModel = None,
  outMatrix = None,
  inClassifier = 'GMM' 
)

Definition at line 132 of file function_historical_map.py.

Member Function Documentation

def HistoricalMap.function_historical_map.learnModel.scale (   self,
  x,
  M = None,
  m = None 
)

Function that standardize the data.

Input: x: the data M: the Max vector m: the Min vector Output: x: the standardize data M: the Max vector m: the Min vector

Definition at line 282 of file function_historical_map.py.


The documentation for this class was generated from the following file: