class_docstr: Models a simple one variable(y = wx) neural network, and a MSE loss function.
class_docstr_tok: ["Models","a","simple","one","variable","(","y","=","wx",")","neural","network",",","and","a","MSE","loss","function","."]
code: def calc_loss(w, values):
      return np.mean([(v - w * v) ** 2 for v in values])
  
file_path: determined/harness/tests/experiment/fixtures/tf_keras_one_var_model.py
imports: from typing import Any, Dict, List, cast
  import numpy
  import tensorflow
  from tensorflow.keras.layers import Dense
  from tensorflow.keras.losses import mean_squared_error
  from tensorflow.keras.models import Sequential
  from tensorflow.keras.optimizers.legacy import SGD
  from determined import keras
  from tests.experiment.fixtures import keras_cb_checker
label_desc: Use image node_id 6 for calling the OneVarTrial obj's underlying member method code with example usage: obj.calc_loss(w, values) and returns: np