public PerformAnalysis(AnalystScript theScript, string theFilename, bool theHeaders, AnalystFileFormat theFormat) { this._xb41a802ca5fde63b = theFilename; this._x94e6ca5ac178dbd0 = theHeaders; this._x5786461d089b10a0 = theFormat; this._x594135906c55045c = theScript; }
public AnalystWizard(EncogAnalyst theAnalyst) { if (15 == 0) { return; } this._x7047063a9bee4054 = true; Label_0071: this._xc24b506a94383a44 = false; this._x34231b3d9a1591be = true; this._x9b10ace6509508c0 = NormalizeRange.NegOne2One; this._x554f16462d8d4675 = theAnalyst; this._x594135906c55045c = this._x554f16462d8d4675.Script; this._xa24f4208aa2278f4 = WizardMethodType.FeedForward; this._x0768e2edc97194de = ""; if (8 != 0) { this._x29c8e5bee3cb25f8 = AnalystGoal.Classification; this._xb6540cd895237850 = 0; if (1 != 0) { this._x654428e3563552e3 = 0; this._x0236ea04f9fa4aaa = false; this._x771edacf1be2c386 = new DiscardMissing(); } else { goto Label_0071; } } }
public AnalyzedField(AnalystScript theScript, string name) : base(name) { this._x785cd8b1f9494d74 = new Dictionary<string, AnalystClassItem>(); this._x0eba5dc834af0bac = 0; this._x594135906c55045c = theScript; }
/// <summary> /// Construct an analyzed field. /// </summary> /// <param name="theScript">The script being analyzed.</param> /// <param name="name">The name of the field.</param> public AnalyzedField(AnalystScript theScript, String name) : base(name) { _classMap = new Dictionary<String, AnalystClassItem>(); _instances = 0; _script = theScript; }
/// <summary> /// Construct the analysis object. /// </summary> /// <param name="theScript">The script to use.</param> /// <param name="theFilename">The name of the file to analyze.</param> /// <param name="theHeaders">True if headers are present.</param> /// <param name="theFormat">The format of the file being analyzed.</param> public PerformAnalysis(AnalystScript theScript, String theFilename, bool theHeaders, AnalystFileFormat theFormat) { _filename = theFilename; _headers = theHeaders; _format = theFormat; _script = theScript; }
public EncogAnalyst() { if (0 == 0) { if (0x7fffffff == 0) { goto Label_00BE; } if (0 != 0) { goto Label_0071; } this._x594135906c55045c = new AnalystScript(); goto Label_00E8; } goto Label_008D; Label_0071: this.AddCommand(new CmdNormalize(this)); this.AddCommand(new CmdRandomize(this)); this.AddCommand(new CmdSegregate(this)); this.AddCommand(new CmdTrain(this)); this.AddCommand(new CmdBalance(this)); this.AddCommand(new CmdSet(this)); this.AddCommand(new CmdReset(this)); if (0 != 0) { goto Label_00E8; } this.AddCommand(new CmdCluster(this)); return; Label_008D: this._x636041b6008d8fc2 = null; this._xc8e5edc888efe6f5 = new Dictionary<string, Cmd>(); this.MaxIteration = -1; this.AddCommand(new CmdCreate(this)); this.AddCommand(new CmdEvaluate(this)); Label_00BE: this.AddCommand(new CmdEvaluateRaw(this)); if (-2147483648 != 0) { this.AddCommand(new CmdGenerate(this)); goto Label_0071; } return; Label_00E8: this._xa1a7b04ac1ec3821 = new List<IAnalystListener>(); if (0 != 0) { return; } goto Label_008D; }
/// <summary> /// Construct a script loader. /// </summary> /// <param name="theScript">The script to load into.</param> public ScriptLoad(AnalystScript theScript) { _script = theScript; }
/// <summary> /// Construct the script. /// </summary> /// /// <param name="theScript">The script to save.</param> public ScriptSave(AnalystScript theScript) { _script = theScript; }
/// <summary> /// Construct the analyst wizard. /// </summary> /// <param name="theAnalyst">The analyst to use.</param> public AnalystWizard(EncogAnalyst theAnalyst) { _directClassification = false; _taskSegregate = true; _taskRandomize = true; _taskNormalize = true; _taskBalance = false; _taskCluster = true; _range = NormalizeRange.NegOne2One; _analyst = theAnalyst; _script = _analyst.Script; _methodType = WizardMethodType.FeedForward; TargetFieldName = ""; _goal = AnalystGoal.Classification; _leadWindowSize = 0; _lagWindowSize = 0; _includeTargetField = false; _missing = new DiscardMissing(); MaxError = DefaultTrainError; NaiveBayes = false; }
/// <summary> /// Construct the Encog analyst. /// </summary> /// public EncogAnalyst() { _script = new AnalystScript(); _listeners = new List<IAnalystListener>(); _currentQuantTask = null; _commands = new Dictionary<String, Cmd>(); MaxIteration = -1; AddCommand(new CmdCreate(this)); AddCommand(new CmdEvaluate(this)); AddCommand(new CmdEvaluateRaw(this)); AddCommand(new CmdGenerate(this)); AddCommand(new CmdNormalize(this)); AddCommand(new CmdRandomize(this)); AddCommand(new CmdSegregate(this)); AddCommand(new CmdTrain(this)); AddCommand(new CmdBalance(this)); AddCommand(new CmdSet(this)); AddCommand(new CmdReset(this)); AddCommand(new CmdCluster(this)); }
public void Init(AnalystScript script) { if (this._xcb632f1b59a7f901 != null) { using (IEnumerator<AnalystField> enumerator = this._xcb632f1b59a7f901.GetEnumerator()) { AnalystField field; DataField field2; int num; Label_0018: if (enumerator.MoveNext()) { goto Label_0177; } goto Label_00BE; Label_0029: if (((uint) num) > uint.MaxValue) { goto Label_009D; } Label_003B: num = 0; foreach (AnalystClassItem item in field2.ClassMembers) { field.Classes.Add(new ClassItem(item.Name, num++)); } goto Label_0018; Label_008B: if (field.Action == NormalizationAction.SingleField) { goto Label_0029; } if (3 == 0) { goto Label_003B; } goto Label_0018; Label_009D: if (field.Action == NormalizationAction.Equilateral) { goto Label_003B; } Label_00AB: if (field.Action != NormalizationAction.OneOf) { goto Label_008B; } goto Label_003B; Label_00BE: if (((uint) num) <= uint.MaxValue) { return; } if ((((uint) num) | 2) != 0) { goto Label_0171; } if (0 == 0) { goto Label_012F; } goto Label_008B; Label_00F3: if (0 != 0) { goto Label_0018; } goto Label_0029; Label_00FE: field.ActualHigh = field2.Max; field.ActualLow = field2.Min; goto Label_009D; Label_011B: if (field.Action == NormalizationAction.Normalize) { goto Label_00FE; } if (0 == 0) { goto Label_009D; } goto Label_00AB; Label_012F: if (0 == 0) { goto Label_011B; } if (2 != 0) { goto Label_00FE; } if (0 == 0) { goto Label_008B; } goto Label_019C; Label_013E: field2 = script.FindDataField(field.Name); if (-1 == 0) { goto Label_00F3; } while (field2 == null) { throw new AnalystError("Normalize specifies unknown field: " + field.Name); } goto Label_0181; Label_0171: if (0 != 0) { goto Label_0029; } Label_0177: field = enumerator.Current; goto Label_013E; Label_0181: if ((((uint) num) + ((uint) num)) <= uint.MaxValue) { goto Label_012F; } Label_019C: if ((((uint) num) + ((uint) num)) >= 0) { goto Label_009D; } } } }
/// <summary> /// Construct this command. /// </summary> /// /// <param name="theAnalyst">The analyst that this command belongs to.</param> protected Cmd(EncogAnalyst theAnalyst) { _analyst = theAnalyst; _script = _analyst.Script; _properties = _script.Properties; }
protected Cmd(EncogAnalyst theAnalyst) { this._x554f16462d8d4675 = theAnalyst; this._x594135906c55045c = this._x554f16462d8d4675.Script; this._xe11545499171cc05 = this._x594135906c55045c.Properties; }
public AnalystNormalize(AnalystScript script) { this._x594135906c55045c = script; }
/// <summary> /// Construct the script. /// </summary> /// /// <param name="theScript">The script to save.</param> public ScriptSave(AnalystScript theScript) { _script = theScript; }
/// <summary> /// Construct a script loader. /// </summary> /// <param name="theScript">The script to load into.</param> public ScriptLoad(AnalystScript theScript) { _script = theScript; }
public ScriptLoad(AnalystScript theScript) { this._x594135906c55045c = theScript; }