How to pick a language for Artificial Intelligence programming? [closed]

All the cool bearded gurus in what’s left of AI research use Lisp 🙂 There are two big camps: Common Lisp and Scheme. They have different syntax, etc. Lots of good stuff written for both. Java is a very popular all-purpose language but a lot of the interesting stuff in AI / Functional Programming, such …

Read more

How to work with multiple inputs for LSTM in Keras?

Change a = dataset[i:(i + look_back), 0] To a = dataset[i:(i + look_back), :] If you want the 3 features in your training data. Then use model.add(LSTM(4, input_shape=(look_back,3))) To specify that you have look_back time steps in your sequence, each with 3 features. It should run EDIT : Indeed, sklearn.preprocessing.MinMaxScaler()‘s function : inverse_transform() takes an …

Read more

How to change the learning rate of an optimizer at any given moment (no LR schedule)?

So the learning rate is stored in optim.param_groups[i][‘lr’]. optim.param_groups is a list of the different weight groups which can have different learning rates. Thus, simply doing: for g in optim.param_groups: g[‘lr’] = 0.001 will do the trick. **Alternatively**, as mentionned in the comments, if your learning rate only depends on the epoch number, you can …

Read more

Batch normalization instead of input normalization

You can do it. But the nice thing about batchnorm, in addition to activation distribution stabilization, is that the mean and std deviation are likely migrate as the network learns. Effectively, setting the batchnorm right after the input layer is a fancy data pre-processing step. It helps, sometimes a lot (e.g. in linear regression). But …

Read more