| 26 | ) |
| 27 | |
| 28 | type SingleFileDataset struct { |
| 29 | ClassCounts map[int]int |
| 30 | ClassWeights map[int]float32 |
| 31 | Count int |
| 32 | |
| 33 | classCountsLock *sync.Mutex |
| 34 | filePath string |
| 35 | filePool *sync.Pool |
| 36 | concurrentFileLimit int32 |
| 37 | openFileCount *int32 |
| 38 | ignoreParseErrors bool |
| 39 | skipHeaders bool |
| 40 | shuffled bool |
| 41 | generatorOffset *int32 |
| 42 | generatorOffsetLock *sync.Mutex |
| 43 | cacheDir string |
| 44 | yProcessor *preprocessor.Processor |
| 45 | columnProcessors []*preprocessor.Processor |
| 46 | lineOffsets []int64 |
| 47 | trainPercent float32 |
| 48 | valPercent float32 |
| 49 | testPercent float32 |
| 50 | trainCount int32 |
| 51 | valCount int32 |
| 52 | testCount int32 |
| 53 | mode GeneratorMode |
| 54 | offset int32 |
| 55 | limit int32 |
| 56 | filter func(line []string) bool |
| 57 | maxRowsForFit int |
| 58 | |
| 59 | logger *cblog.Logger |
| 60 | errorHandler *cberrors.ErrorsContainer |
| 61 | } |
| 62 | |
| 63 | type SingleFileDatasetConfig struct { |
| 64 | FilePath string |
nothing calls this directly
no outgoing calls
no test coverage detected