Welcome    Usage    Browse    Find CID    Search     Log in

cM API Documentation

model_fgg-hybrid-sigm-sing Namespace Reference

Functions

def init
def sigm
def is_singularity_power_of_two
def build
def predict

Variables

dictionary ini = {}
 cm_kernel = None

Function Documentation

def model_fgg-hybrid-sigm-sing::build (   i  ) 
Build model

Input:  {
          data                 
          ct_dimensions_input
          ct_dimensions_output
          desc
          model_name                   - (earth, svm)
          (record_data_to_file_prefix) - if !='', use this filename prefix instead of randomly generated
        }

Output: {
          cm_return       - return code >0 if error
          file_with_model - file with model
        }

Definition at line 56 of file model_fgg-hybrid-sigm-sing.py.

def model_fgg-hybrid-sigm-sing::init (   i  ) 

Definition at line 26 of file model_fgg-hybrid-sigm-sing.py.

def model_fgg-hybrid-sigm-sing::is_singularity_power_of_two (   x  ) 
Separate possible singularities (for now, power of 2)

Input:  x - float number
Return: True if power of 2, otherwise False

Definition at line 40 of file model_fgg-hybrid-sigm-sing.py.

def model_fgg-hybrid-sigm-sing::predict (   i  ) 
Predict using model

Input:  {
          model_file 
          data                 
          ct_dimensions_input
          (ct_dimensions_output)  - for comparison
          desc                    - cM data description
          model_name              - (earth, svm)
          (max_variation_percent) - for comparison, report points where variation is more than this number (default=0.2)
        }

Output: {
          cm_return - return code >0 if error
          (rmse)    - if comparison, root mean square error for predictions vs original
          (max_var) - list of points with variation more than max_variation_percent          
        }

Definition at line 150 of file model_fgg-hybrid-sigm-sing.py.

def model_fgg-hybrid-sigm-sing::sigm (   x,
  x0,
  k,
  a,
  c 
)
Signmoidal model 

Input:  x0,k,a,c
Return: linear function

Definition at line 30 of file model_fgg-hybrid-sigm-sing.py.


Variable Documentation

model_fgg-hybrid-sigm-sing::cm_kernel = None

Definition at line 14 of file model_fgg-hybrid-sigm-sing.py.

dictionary model_fgg-hybrid-sigm-sing::ini = {}

Definition at line 13 of file model_fgg-hybrid-sigm-sing.py.


Generated on Wed May 28 02:49:03 2014 for Collective Mind Framework by DoxyGen 1.6.1
Concept, design and coordination: Grigori Fursin (C) 1993-2013