import numpy as np
import torch


class ToTensor(object):
    """Convert ndarrays in sample to Tensors."""

    def __call__(self, sample):
        chromatogram = torch.from_numpy(np.asarray(sample[0])).float()
        label = torch.from_numpy(np.asarray(sample[1])).float()
        return chromatogram, label

ddd7d1d871b248fc217c01528240a76139839cbe
<mask token>

<mask token>


class ToTensor(object):
    <mask token>
    <mask token>

<mask token>


class ToTensor(object):
    """Convert ndarrays in sample to Tensors."""

    def __call__(self, sample):
        chromatogram = torch.from_numpy(np.asarray(sample[0])).float()
        label = torch.from_numpy(np.asarray(sample[1])).float()
        return chromatogram, label

import numpy as np
import torch


class ToTensor(object):
    """Convert ndarrays in sample to Tensors."""

    def __call__(self, sample):
        chromatogram = torch.from_numpy(np.asarray(sample[0])).float()
        label = torch.from_numpy(np.asarray(sample[1])).float()
        return chromatogram, label
