# Machine learning

**URL:** <https://community.deeplearning.ai/t/machine-learning/130954>\
**Category:** AI Discussions\
**Created:** [May 24, 2022, 9:50am UTC](https://community.deeplearning.ai/t/machine-learning/130954 "2022-05-24T09:50:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahiaoui\_asma](https://avatars.discourse-cdn.com/v4/letter/y/0ea827/32.png) [@yahiaoui\_asma](https://community.deeplearning.ai/u/yahiaoui_asma)\
**Post date:** [May 24, 2022, 9:50am UTC](https://community.deeplearning.ai/t/machine-learning/130954/1 "2022-05-24T09:50:39Z")

</div>

I have a regression supervised learning which I trained with boosting algorithm, it gives a good results, However , I need to predict a formula that takes the features into account  
So, What are the types of machine learning algorithms that we can predict a mathematical equation with them?

---

<div class="post-metadata">

**Author:** ![Mubsi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/mubsi/32/94983_2.png) [@Mubsi](https://community.deeplearning.ai/u/Mubsi)\
**Post date:** [May 24, 2022, 11:03am UTC](https://community.deeplearning.ai/t/machine-learning/130954/2 "2022-05-24T11:03:56Z")

</div>

Hi @yahiaoui_asma,

I remember reading on something similar, courtesy [The Batch](https://info.deeplearning.ai/e3t/Ctc/LX+113/cJhC404/VW1Lp34qhK-WW85cRLd5Y2PkDW48Yhp74HT886McSJR93lLB3V1-WJV7CgSGLW4Rdg8X2c_wHWW4tqSnW83WpQWW6PNDJJ485jBkW5W3F-X1wv6gRW7MfX7d6B5PfHW74jdXP2ZQVJ7W79RnpQ5LRm8tW88dfFf5H5l1mW73qyFT2b0RYNW72rCsY73FPTDW4NNqjD3sSCBXVfygTS8pFgW2W8KS7Wq4v8_4KW95G1xp1lbYqJVFzftS3kHSRgW767P_C6zdx8wW91tjCV1KmVQ8W723ZgR5wH8YqW8sWPXk5z6qvYW71Trgm1MqM5g34TC1).

You can take at these two links:

- [Deep Symbolic Regression for Recurrent Sequences](https://arxiv.org/abs/2201.04600?utm_campaign=The%20Batch&utm_medium=email&_hsmi=209959051&_hsenc=p2ANqtz-8GYmGLq7cmvZrqzybVpQwyjaVcfJz9zpOfak8RgKN_ldOW0Q3_Hk8aNQcASnv6Zf8Eo3dPkoJjsxXWgSRJ1gEKvZV-Ow&utm_content=209957541&utm_source=hs_email)
- [Learning Equations for Extrapolation and Control](https://arxiv.org/abs/1806.07259?utm_campaign=The%20Batch&utm_medium=email&_hsmi=209959051&_hsenc=p2ANqtz--E1ySxP9PgSmnAHkzE-Z2LaEPVpIefpydn9qv4jzYp0gTaM2kymag5p4_LQNm2x5SDUFG2v8TBf12fY9Jq6BaZHKcSBQ&utm_content=209957541&utm_source=hs_email)

Cheers,  
Mubsi

---

<div class="post-metadata">

**Author:** ![yahiaoui\_asma](https://avatars.discourse-cdn.com/v4/letter/y/0ea827/32.png) [@yahiaoui\_asma](https://community.deeplearning.ai/u/yahiaoui_asma)\
**Post date:** [May 24, 2022, 4:00pm UTC](https://community.deeplearning.ai/t/machine-learning/130954/3 "2022-05-24T16:00:36Z")

</div>

please how to know if my problem is linear or not  
since i have multiple features i couldn’t plot the features in function of target to know the form of my problem

---

<div class="post-metadata">

**Author:** ![Christian\_Simonis](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/christian_simonis/32/142583_2.png) [@Christian\_Simonis](https://community.deeplearning.ai/u/Christian_Simonis)\
**Post date:** [May 25, 2022, 11:25am UTC](https://community.deeplearning.ai/t/machine-learning/130954/4 "2022-05-25T11:25:58Z")

</div>

Hi there,

I would suggest to start with visualising your data, e.g. in the following way with histograms of features and scatterplots:

- [pandas.plotting.scatter\_matrix — pandas 1.4.2 documentation](https://pandas.pydata.org/docs/reference/api/pandas.plotting.scatter_matrix.html)

You can directly see whether some features have linear dependencies to your label as well as if there is redundant information in the data (then a PCA might be useful or you manually want to select the most important features).

Also: if you need a formula, you should also think about fitting a model (in simplest case a linear one) and continue with a residuum analysis to check whether the model meets your requirements.

Following sources might be interesting for you:

- model fit possibility with scipy: [scipy.optimize.curve\_fit — SciPy v1.8.1 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html)
- example for a model fit with some data: [time-series-analysis/Stock\_TSA.py at master · christiansimonis/time-series-analysis · GitHub](https://github.com/christiansimonis/time-series-analysis/blob/master/Stock_TSA.py)

Best regards  
Christian
