AI is my favorite domain as a professional Researcher. What I am doing is Reinforcement Learning,Autonomous Driving,Deep Learning,Time series Analysis, SLAM and robotics. Also Economic Analysis including AI,AI business decision
classAgent:def__init__(self,state_size,is_eval=False,model_name=""):self.action_size=3# sit, buy, sell
...def_model(self):model=Sequential()model.add(Dense(units=64,input_dim=self.state_size,activation="relu"))model.add(Dense(units=32,activation="relu"))model.add(Dense(units=8,activation="relu"))model.add(Dense(self.action_size,activation="linear"))model.compile(loss="mse",optimizer=Adam(lr=0.001))...## state definition
defgetState(data,t,n):d=t-n+1block=data[d:t+1]ifd>=0else-d*[data[0]]+data[0:t+1]# pad with t0
res=[]foriinrange(n-1):res.append(sigmoid(block[i+1]-block[i]))returnnp.array([res])
```python
from keras.datasets import mnist
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Conv2D
from ke...