random_classifier¶
Module: missions.nodes.classification.random_classifier
¶
Contains nodes that classify randomly
Inheritance diagram for pySPACE.missions.nodes.classification.random_classifier
:
RandomClassifierNode
¶
-
class
pySPACE.missions.nodes.classification.random_classifier.
RandomClassifierNode
(*args, **kwargs)[source]¶ Bases:
pySPACE.missions.nodes.base_node.BaseNode
Assign data randomly with probability 0.5 to the classes
Parameters
Exemplary Call
- node : Random_Classifier
Author: Jan Hendrik Metzen (jhm@informatik.uni-bremen.de)
Created: 2009/07/03
Last change: 2010/08/13 by Mario Krell
POSSIBLE NODE NAMES: - RandomClassifier
- RandomClassifierNode
- Random_Classifier
POSSIBLE INPUT TYPES: - FeatureVector
Class Components Summary
_execute
(data)Executes the classifier on the given data vector x _train
(data, class_label)Trains the classifier on the given data input_types
is_supervised
()Returns whether this node requires supervised training is_trainable
()Returns whether this node is trainable. -
_train
(data, class_label)[source]¶ Trains the classifier on the given data
It is assumed that the class_label parameter contains information about the true class the data belongs to
-
input_types
= ['FeatureVector']¶