Features and Labels at Learning Engine and Learning Mine
This commit is contained in:
1 parent
1aeb49f6a4
commit
2c5ef4d8cc
4 files changed
+376
-2
No files matched your search
+16
@@ -376,6 +376,14 @@ exports.newTensorFlowBotModulesTensorFlowLibrary = function (processIndex) {
|
||||
if (dataFeature.featureFormula === undefined) { continue }
|
||||
let featureValue = learningSystem.formulas.get(dataFeature.featureFormula.id)
|
||||
features.push(featureValue)
|
||||
|
||||
/*
|
||||
We will store at the Learning Engine data structure the features we have calculated.
|
||||
*/
|
||||
if (learningEngine.features.features[i] === undefined) { continue }
|
||||
learningEngine.features.features[i].featureValue.value = featureValue
|
||||
learningEngine.features.features[i].begin.value = learningEngine.learningCurrent.learningEpisode.candle.begin.value
|
||||
learningEngine.features.features[i].end.value = learningEngine.learningCurrent.learningEpisode.candle.end.value
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -419,6 +427,14 @@ exports.newTensorFlowBotModulesTensorFlowLibrary = function (processIndex) {
|
||||
if (dataLabel.labelFormula === undefined) { continue }
|
||||
let labelValue = learningSystem.formulas.get(dataLabel.labelFormula.id)
|
||||
labels.push(labelValue)
|
||||
|
||||
/*
|
||||
We will store at the Learning Engine data structure the labels we have calculated.
|
||||
*/
|
||||
if (learningEngine.labels.labels[i] === undefined) { continue }
|
||||
learningEngine.labels.labels[i].labelValue.value = labelValue
|
||||
learningEngine.labels.labels[i].begin.value = learningEngine.learningCurrent.learningEpisode.candle.begin.value
|
||||
learningEngine.labels.labels[i].end.value = learningEngine.learningCurrent.learningEpisode.candle.end.value
|
||||
}
|
||||
|
||||
tensorFlowData = require("@tensorflow/tfjs-data")
|
||||
|
||||
Reference in new issue
Block a user