I'm new at ML and have a problem with catboost. So, I want to predict function value (For example cos | sin etc.). I went over everything but my prediction is always straight line
Is it possible and if it is, how i can issue with my problems
I will be glad to any comment ))
train_data = np.array(np.arange(1, 100, 0.5))
test_data = np.array(np.arange(100, 120, 0.5))
train_labels = np.array(list(map(lambda x : math.cos(x), np.arange(1, 100, 0.5))))
model = CatBoostRegressor(iterations=100, learning_rate=0.01, depth=12, verbose=False)
model.fit(train_data, train_labels)
preds = model.predict(test_data)
plt.plot(preds)
plt.show()
This picture shows what i want: