Answers.Body: <p>You create a model like this very easily with keras. Follow these steps.</p>
  <h1>Data Exploring</h1>
  <p>Before building a machine learning model, you must explore your data first. An approach is to use libraries to visualize the data as graphs. You can use the tool <code>pandas-profiling</code></p>
  <p><a href="https://towardsdatascience.com/exploring-your-data-with-just-1-line-of-python-4b35ce21a82d" rel="nofollow noreferrer">https://towardsdatascience.com/exploring-your-data-with-just-1-line-of-python-4b35ce21a82d</a></p>
  <h2>Points to look for when exploring the data</h2>
  <p>You should look for the following:</p>
  <ul>
  <li>Distribution of labels and input features</li>
  <li>Range of input features and labels</li>
  <li>Missing label or input feature</li>
  <li>Nan on value</li>
  <li>Outliers</li>
  </ul>
  <p>You should look out for them and use appropriate data cleaning or filtering method to clean them. For example, Nan or missing value may be substituted with 0 and outliers will be removed. Input features may also be normalized.</p>
  <h1>Building the model</h1>
  <p>Keras is a easy tool for building machinea learning model. For how to build a basic MLP ( Multi-Layer Perceptron), you can refer to the example code and the resource.</p>
  <p><a href="https://machinelearningmastery.com/tutorial-first-neural-network-python-keras/" rel="nofollow noreferrer">https://machinelearningmastery.com/tutorial-first-neural-network-python-keras/</a></p>
  <h1>Experimenting</h1>
  <p>After creating the basic model, you can start experimenting with stuff like:</p>
  <ul>
  <li>Different model structure like adding layers and changing hidden layer size</li>
  <li>Different Optimizer</li>
  <li>Different hyperparameters like learning rate and batch size</li>
  <li>Different input features</li>
  </ul>
  <p>You will gain more experience as you go. There is a lot of ways to improve the performance of the model.</p>
  <h1>Bewares</h1>
  <p>Here are things to beware:</p>
  <ul>
  <li>If your model doesn't work out, don't worry. Try another method or tune parameters until it work.</li>
  <li>If the testing loss become very high while training loss is low, you can add dropout to prevent this from happening. This is called overfitting.</li>
  </ul>
  <p>Hope I can help you and have fun!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-21T15:07:46.810Z
Answers.LastActivityDate: 2019-10-21T15:07:46.810Z
Answers.LastEditDate: 2020-06-17T09:57:20.710Z
Answers.UserDisplayName: Clement
Body: <p>I want to build a multivariable and multivariate regression model in Keras (with TensorFlow as backend), that is, a regression model with multiple values as input (multivariable) and output (multivariate). </p>
  
  <p>The independent variables are, for example, the length, weight, force, etc., and the dependent variables are the torque, friction, heat, temperature, etc.</p>
  
  <p>What is the best approach to achieve that? Any guidance before I start?  (If anyone can share any example code/notebook/code would be great as well).</p>
  
Tags: <machine-learning><keras><regression>
Title: What is the best approach for multivariable and multivariate regression?
UserDisplayName: Riz
ThreadText: # What is the best approach for multivariable and multivariate regression?
  
  (Asked by: username_0 on 2019-10-21)
  
  I want to build a multivariable and multivariate regression model in Keras (with TensorFlow as backend), that is, a regression model with multiple values as input (multivariable) and output (multivariate).
  
  The independent variables are, for example, the length, weight, force, etc., and the dependent variables are the torque, friction, heat, temperature, etc.
  
  What is the best approach to achieve that? Any guidance before I start? (If anyone can share any example code/notebook/code would be great as well).
  
  **Tags:** machine-learning, keras, regression
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-10-21. Score: 0 | Accepted answer
  
  You create a model like this very easily with keras. Follow these steps.
  
  # Data Exploring
  
  Before building a machine learning model, you must explore your data first. An approach is to use libraries to visualize the data as graphs. You can use the tool `pandas-profiling`
  
  <https://towardsdatascience.com/exploring-your-data-with-just-1-line-of-python-4b35ce21a82d>
  
  ## Points to look for when exploring the data
  
  You should look for the following:
  
  * Distribution of labels and input features
  * Range of input features and labels
  * Missing label or input feature
  * Nan on value
  * Outliers
  
  You should look out for them and use appropriate data cleaning or filtering method to clean them. For example, Nan or missing value may be substituted with 0 and outliers will be removed. Input features may also be normalized.
  
  # Building the model
  
  Keras is a easy tool for building machinea learning model. For how to build a basic MLP ( Multi-Layer Perceptron), you can refer to the example code and the resource.
  
  <https://machinelearningmastery.com/tutorial-first-neural-network-python-keras/>
  
  # Experimenting
  
  After creating the basic model, you can start experimenting with stuff like:
  
  * Different model structure like adding layers and changing hidden layer size
  * Different Optimizer
  * Different hyperparameters like learning rate and batch size
  * Different input features
  
  You will gain more experience as you go. There is a lot of ways to improve the performance of the model.
  
  # Bewares
  
  Here are things to beware:
  
  * If your model doesn't work out, don't worry. Try another method or tune parameters until it work.
  * If the testing loss become very high while training loss is low, you can add dropout to prevent this from happening. This is called overfitting.
  
  Hope I can help you and have fun!
  
  
  ---
  
  