class_docstr: A simple linear regression model used for testing.
class_docstr_tok: ["A","simple","linear","regression","model","used","for","testing","."]
code: def tensorize(
      self, datapoint: SampleDatapoint
  ) -> TensorizedDatapoint:
      return TensorizedDatapoint(
          input_features=np.array(
              datapoint.input_features, dtype=np.float32
          ),
          target_class=np.array(
              1 if datapoint.target_class else 0, dtype=np.float32
          ),
      )
  
imports: import numpy
  import torch
  from torch import nn
  from typing import Any, Dict, Iterator, NamedTuple, Optional, Union
  from ptgnn.baseneuralmodel import AbstractNeuralModel, ModuleWithMetrics
  from ptgnn.baseneuralmodel.utils.data import enforce_not_None
  from ptgnn.tests.simplemodel.data import SampleDatapoint
label_desc: Use image node_id 4 for calling the SimpleRegressionModel obj's underlying member method code with example usage: obj.tensorize(datapoint) and returns: TensorizedDatapoint