I've absolutly no idea whats wrong with the compiler: Error: Data declarations are not supported
Got this error by defining the dataset (see bold words).
inkling "2.0"
type DatasetState number
using Math
using Goal
type DatasetAction {
Action: number
}
#First try
#data Dataset(action: DatasetAction, Config: number): DatasetState {
# Uses this dataset for training
# dataset "DS_Wassermuehle"
#}
graph (input: DatasetState): DatasetAction {
concept OpenGate(input): DatasetAction {
curriculum {
#Second Try
source data Data(action: DatasetAction, Config: number): DatasetState {
dataset "DS_Wassermuehle"
}
reward GetReward
}
}
}
function GetReward(s: DatasetState): number {
return 0.01
}