pub struct NabMnist;
Implementations§
Source§impl NabMnist
impl NabMnist
Sourcepub fn mnist_csv_to_nab(
csv_path: &str,
images_path: &str,
labels_path: &str,
image_shape: Vec<usize>,
) -> Result<()>
pub fn mnist_csv_to_nab( csv_path: &str, images_path: &str, labels_path: &str, image_shape: Vec<usize>, ) -> Result<()>
Converts MNIST CSV data to image and label .nab files
§Arguments
csv_path
- Path to the CSV fileimages_path
- Path where to save the images .nab filelabels_path
- Path where to save the labels .nab fileimage_shape
- Shape of a single image (e.g., [28, 28])
Auto Trait Implementations§
impl Freeze for NabMnist
impl RefUnwindSafe for NabMnist
impl Send for NabMnist
impl Sync for NabMnist
impl Unpin for NabMnist
impl UnwindSafe for NabMnist
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more