Learnx.Preprocessing (Learnx v0.2.0)

Link to this section Summary

Link to this section Types

@type tensor() :: Nx.Tensor.t()

Link to this section Functions

Link to this function

validate_data(t)

Link to this function

validate_data(x, y)

@spec validate_data(list() | tensor(), list() | tensor()) ::
  {tensor(), tensor()} | RuntimeError

Validates input data.

Adapts the shape of the given data to one the regressors can use.

parameters

Parameters

  • x : list or tensor of shape (n_samples, n_features) or (n_samples,). The input samples.

  • y : list or tensor of shape (n_samples,). The targets.