TorchLean API

NN.Runtime.Autograd.Train.IoLoader.Common

Shared IO-loader parsing utilities #

This module contains the small pieces shared by the CSV and NPY loaders:

The helpers are intentionally modest. They support TorchLean examples and regression tests, not a full data-ingestion framework.

Maximum number of characters accepted for a numeric CSV cell or numeric NPY header atom.

Instances For

    Decimal scanning #

    ASCII digit test used by the numeric parser.

    Instances For

      Convert a digit character to its numeric value, or return none if not a digit.

      Instances For

        Interpret a list of base-10 digits as a natural number.

        Instances For

          Consume a maximal prefix of digits from a character list.

          Instances For

            Parse an optional leading sign, returning whether the number is negative plus the remaining characters.

            Instances For

              Parse a natural number header value (expects a pure digit string).

              Instances For

                Header string helpers #

                Drop characters until predicate p becomes true.

                Instances For

                  Take characters until stop is encountered (not including stop).

                  Instances For

                    Parse a quoted value '...' or \"...\" from a header fragment (best-effort).

                    Instances For

                      Parse a boolean header value (expects True or False).

                      Instances For

                        Find the substring after key in a header string, if present.

                        Instances For

                          Find a header field value by key name (handles both 'key': and \"key\": spellings).

                          Instances For