Is it possible for you to just convert the datetime string into a format that nupic uses?
How are you using nupic? If you’re using the OPF, you can just pass it a datetime object. Which part of nupic are you using where you need the string in that format? If it’s the swarming part, it can parse a multitude of different formats.
If you use the OPF, you don’t need to create an encoder, you just configure your encoders in the model params. Please follow the API Quickstart for the OPF.
sorry , I will use algorithms ,
ok , I want detect some anomaly in my data set , and my data set are in this form ( hh:mm:ss.mmm,mV,mV) .
first step, I want to encode the first column to binary form I use (dateString = dt.strptime(record[0], “%H:%M.%S) but nupic return to me a error that may data set dont have the same forme of (strptime) because the parametre of strptime are (def _strptime(data_string, format=”%a %b %d %H:%M:%S %Y")) , so my question is if there is any function can help me or I must creat my a function of datetime .
I wish you intrestand me