tensflow python
1. Extract the relevant code snippets to train a random forest regressor for predicting the median house price in California.
2. Training a neural network comparator using Tensorflow
Create a tensorflow classifier program to compare two real numbers. Your classifier takes 2 real numbers x1, x2 as input, and outputs 0 if x1 < x2, 1 otherwise.
Which activation function should you choose, ReLU (Rectified Linear Unit) or Sigmoid?. Recall that ReLU(x1-x2) will output 0 when x1<x2, and a non-zero positive otherwise. Which one works better?