SOLVED

Inkling - Error: Data declarations are not supported - wtf?

Occasional Contributor
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). 
Anyone an idea? @edilmo?
 
inkling "2.0"

 

type DatasetState number
using Math
using Goal

 

type DatasetAction {
    Actionnumber
}

 

#First try
#data Dataset(action: DatasetAction, Config: number): DatasetState {
    # Uses this dataset for training
#    dataset "DS_Wassermuehle"
#}

 

graph (inputDatasetState)DatasetAction {
    concept OpenGate(input)DatasetAction {
        curriculum {
           #Second Try
            source data Data(actionDatasetActionConfignumber)DatasetState {
                dataset "DS_Wassermuehle"    
            }
            reward GetReward

 

        }
    }
}
function GetReward(sDatasetState)number {
    return 0.01
}
2 Replies
best response confirmed by Torsten_Katthoefer (Occasional Contributor)
Solution

Hi @Torsten_Katthoefer , could you try enabling the alpha features? (maybe we haven't move that out of Alpha to Beta)

you can achieve that in two ways:

  • Query string in the URL: in your browser, at the end of the URL add the following ?alpha=true
  • UI switch: check the images below.

Screen Shot 2022-01-05 at 11.21.23 AM.pngScreen Shot 2022-01-05 at 11.26.43 AM.png

Thanks a lot, @edilmo, in "Alpha-mode", it works. I did it with the URL-extention, did not find the UI-option... Training is running now!