niteshade.utils
General utility and helper functions.
Functions
Check the batch size of input label data.  | 
|
Check the number of classes in one hot encoded data.  | 
|
  | 
Used to copy a torch.Tensor or np.ndarray object.  | 
Decode one hot encoded data.  | 
|
  | 
|
Get the current time stamp as a string.  | 
|
  | 
Load a binary file containing a neural network.  | 
  | 
Perform one hot encoding of previiously decoded data.  | 
  | 
Creates a random colormap to be used together with matplotlib.  | 
  | 
Save an object as a binary .pickle file.  | 
  | 
Save results as a .pickle file.  | 
  | 
Save a matplotlib.pyplot.plot() as a .png file.  | 
  | 
Function to load torchivisions' MNIST dataset, splitted into train, test, and validation sets (the latter only if val_size != None).  | 
  | 
Function to load torchvisions' CIFAR10 dataset, splitted into train, test, and validation sets (the latter only if val_size != None).  | 
  | 
Loads the Iris dataset using sklearn.datasets.load_iris() and returns the inputs and labels in splitted train and test sets (and validation too if val_size != None).  |