smartcorelib / smartcore

A comprehensive library for machine learning and numerical computing. The library provides a set of tools for linear algebra, numerical computing, optimization, and enables a generic, powerful yet still efficient approach to machine learning.
https://smartcorelib.org/
Apache License 2.0
671 stars 76 forks source link

smartcore::readers import causes error "could not find `readers` in `smartcore`" #269

Closed Roee-87 closed 9 months ago

Roee-87 commented 9 months ago

I'm submitting a

Current Behaviour:

The following import should allow users to import CSV files: use smartcore::readers::csv; However, the following error is generated: 3 | use smartcore::readers::csv; | ^^^^^^^ could not findreadersinsmartcore

Expected Behaviour:

Based on documentation found here: https://github.com/smartcorelib/smartcore/blob/dbdc2b2a77d7b73cc483f238b44382946a785f6a/src/readers/csv.rs#L3 the csv import from readers should allow users to import a csv file into a DenseMatrix.

Steps to reproduce:

cargo add smartcore

use smartcore::readers::csv;

This is sufficient to produce the error.

Snapshot:

image

Environment:

* rustc version: 1.72.0 * cargo version: 1.72.0 * OS details: Mac OS 13.5.2 ### Do you want to work on this issue?