Advice for applying machine learning
import numpy as np %matplotlib widget import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression, Ridge from sklearn.preprocessing import StandardScaler, PolynomialFeatures from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.activations import relu,linear from tensorflow.keras.losses import SparseCategoricalCrossentropy from tensorflow.keras.optimizers import Adam import logging logging.getLogger("tensorflow").setLevel(logging.ERROR) from public_tests_a1 import * tf.keras.backend.set_floatx('float64') from assigment_utils import * tf.autograph.set_verbosity(0) # Generate some data X,y,x_ideal,y_ideal = gen_data(18, 2, 0.7) print("X.shape", X.shape, "y.shape", y.shape) #split the data using sklearn routine X_train, X_test, y_train, y_test = tra...