[INFO] cloning repository https://github.com/kevinkurek/rust_ml_training [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kevinkurek/rust_ml_training" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinkurek%2Frust_ml_training", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinkurek%2Frust_ml_training'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c0f241e0f0ac1dc919b66d570fada4eaba9e2d4 [INFO] checking kevinkurek/rust_ml_training/9c0f241e0f0ac1dc919b66d570fada4eaba9e2d4 against master#04ff05c9c0cfbca33115c5f1b8bb20a66a54b799 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinkurek%2Frust_ml_training" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kevinkurek/rust_ml_training [INFO] finished tweaking git repo https://github.com/kevinkurek/rust_ml_training [INFO] tweaked toml for git repo https://github.com/kevinkurek/rust_ml_training written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kevinkurek/rust_ml_training on toolchain 04ff05c9c0cfbca33115c5f1b8bb20a66a54b799 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kevinkurek/rust_ml_training already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/huggingface/candle` [INFO] [stderr] Updating git submodule `https://github.com/NVIDIA/cutlass.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded reborrow v0.5.5 [INFO] [stderr] Downloaded gemm-f64 v0.17.1 [INFO] [stderr] Downloaded ug v0.0.2 [INFO] [stderr] Downloaded sysctl v0.5.5 [INFO] [stderr] Downloaded gemm v0.17.1 [INFO] [stderr] Downloaded gemm-common v0.17.1 [INFO] [stderr] Downloaded gemm-c32 v0.17.1 [INFO] [stderr] Downloaded safetensors v0.4.5 [INFO] [stderr] Downloaded anyhow v1.0.48 [INFO] [stderr] Downloaded zip v1.1.4 [INFO] [stderr] Downloaded gemm-c64 v0.17.1 [INFO] [stderr] Downloaded gemm-f16 v0.17.1 [INFO] [stderr] Downloaded pulp v0.18.22 [INFO] [stderr] Downloaded dyn-stack v0.10.0 [INFO] [stderr] Downloaded gemm-f32 v0.17.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b6a7d7db2dc924d143ee043fee1f9066ff0f3b442342ad8abcc067c5f38fc02 [INFO] running `Command { std: "docker" "start" "-a" "7b6a7d7db2dc924d143ee043fee1f9066ff0f3b442342ad8abcc067c5f38fc02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b6a7d7db2dc924d143ee043fee1f9066ff0f3b442342ad8abcc067c5f38fc02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b6a7d7db2dc924d143ee043fee1f9066ff0f3b442342ad8abcc067c5f38fc02", kill_on_drop: false }` [INFO] [stdout] 7b6a7d7db2dc924d143ee043fee1f9066ff0f3b442342ad8abcc067c5f38fc02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+04ff05c9c0cfbca33115c5f1b8bb20a66a54b799" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a89479c8fe7147e549a17aecfcf6e5dcb311134d72e59dce383ce9dc19c04750 [INFO] running `Command { std: "docker" "start" "-a" "a89479c8fe7147e549a17aecfcf6e5dcb311134d72e59dce383ce9dc19c04750", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking reborrow v0.5.5 [INFO] [stderr] Compiling seq-macro v0.3.5 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking clap_lex v0.7.3 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking clap_builder v4.5.21 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling bytemuck_derive v1.8.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking bytemuck v1.20.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking clap v4.5.21 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking dyn-stack v0.10.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking pulp v0.18.22 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking serde v1.0.215 [INFO] [stderr] Checking gemm-common v0.17.1 [INFO] [stderr] Checking gemm-f32 v0.17.1 [INFO] [stderr] Checking gemm-f64 v0.17.1 [INFO] [stderr] Checking gemm-c64 v0.17.1 [INFO] [stderr] Checking gemm-c32 v0.17.1 [INFO] [stderr] Checking gemm-f16 v0.17.1 [INFO] [stderr] Checking gemm v0.17.1 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking ug v0.0.2 [INFO] [stderr] Checking safetensors v0.4.5 [INFO] [stderr] Checking candle-core v0.8.0 (https://github.com/huggingface/candle#c12db594) [INFO] [stderr] Checking rust_ml_training v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `polars` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use polars::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `polars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `polars`, use `cargo add polars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `polars` [INFO] [stdout] --> src/candle_ml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use polars::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `polars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `polars`, use `cargo add polars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `polars` [INFO] [stdout] --> src/candle_ml.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use polars::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `polars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `polars`, use `cargo add polars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `candle_core` [INFO] [stdout] --> src/candle_ml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use candle_core::{Result as CandleResult, DType, Device, Tensor}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `candle_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `candle_core`, use `cargo add candle_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `linfa` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use linfa::Dataset; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use linfa::traits::{Fit, Predict}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use linfa::metrics::SingleTargetRegression; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `linfa_linear` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use linfa_linear::LinearRegression; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `linfa_linear` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa_linear`, use `cargo add linfa_linear` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/linfa_ml.rs`: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "linfa_ml") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: couldn't read `src/linfa_ml.rs`: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `polars` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use polars::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `polars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `polars`, use `cargo add polars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `candle_core` [INFO] [stdout] --> src/candle_ml.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use candle_core::{Result as CandleResult, DType, Device, Tensor}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `candle_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `candle_core`, use `cargo add candle_core` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "linfa_ml" test) due to 1 previous error [INFO] [stdout] error[E0432]: unresolved import `linfa` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use linfa::Dataset; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use linfa::traits::{Fit, Predict}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use linfa::metrics::SingleTargetRegression; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `linfa` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa`, use `cargo add linfa` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `linfa_linear` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use linfa_linear::LinearRegression; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `linfa_linear` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa_linear`, use `cargo add linfa_linear` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:76:51 [INFO] [stdout] | [INFO] [stdout] 76 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:76:66 [INFO] [stdout] | [INFO] [stdout] 76 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | if let Some(weights_grad) = weights.gradient()? { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 88 | let weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 91 | if let Some(bias_grad) = bias.gradient()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 92 | let bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:102:47 [INFO] [stdout] | [INFO] [stdout] 102 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:102:62 [INFO] [stdout] | [INFO] [stdout] 102 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvReader` [INFO] [stdout] --> src/candle_ml.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | let df = CsvReader::new(reader) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `CsvReader` [INFO] [stdout] | help: a struct with a similar name exists: `BufReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VarStore` [INFO] [stdout] --> src/candle_ml.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | let vs = VarStore::new(Device::Cpu); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VarStore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VarBuilder` [INFO] [stdout] --> src/candle_ml.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | let mut vb = VarBuilder::from(&vs); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `VarBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Linear` [INFO] [stdout] --> src/candle_ml.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let linear = Linear::new(features[0].len(), 1, &mut vb)?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Linear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/candle_ml.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/candle_ml.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "candle_ml" test) due to 18 previous errors [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:76:51 [INFO] [stdout] | [INFO] [stdout] 76 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:76:66 [INFO] [stdout] | [INFO] [stdout] 76 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | if let Some(weights_grad) = weights.gradient()? { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 88 | let weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 91 | if let Some(bias_grad) = bias.gradient()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 92 | let bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `weights` in this scope [INFO] [stdout] --> src/candle_ml.rs:102:47 [INFO] [stdout] | [INFO] [stdout] 102 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bias` in this scope [INFO] [stdout] --> src/candle_ml.rs:102:62 [INFO] [stdout] | [INFO] [stdout] 102 | let predictions = features_tensor.matmul(&weights)?.add(&bias)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvReader` [INFO] [stdout] --> src/candle_ml.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | let df = CsvReader::new(reader) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `CsvReader` [INFO] [stdout] | help: a struct with a similar name exists: `BufReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DataFrame` in this scope [INFO] [stdout] --> src/main.rs:84:33 [INFO] [stdout] | [INFO] [stdout] 84 | fn train_linear_regression(df: &DataFrame, target: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VarStore` [INFO] [stdout] --> src/candle_ml.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | let vs = VarStore::new(Device::Cpu); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VarStore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VarBuilder` [INFO] [stdout] --> src/candle_ml.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | let mut vb = VarBuilder::from(&vs); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `VarBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Linear` [INFO] [stdout] --> src/candle_ml.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let linear = Linear::new(features[0].len(), 1, &mut vb)?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Linear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/candle_ml.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | weights = weights.sub(&weights_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/candle_ml.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | bias = bias.sub(&bias_grad.mul_scalar(learning_rate)?)?; [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvReader` [INFO] [stdout] --> src/main.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let df = CsvReader::new(reader) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `CsvReader` [INFO] [stdout] | help: a struct with a similar name exists: `BufReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa_datasets` [INFO] [stdout] --> src/main.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let dataset = linfa_datasets::diabetes(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `linfa_datasets` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa_datasets`, use `cargo add linfa_datasets` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataFrame` [INFO] [stdout] --> src/main.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | let mut df = DataFrame::new(vec![ [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `DataFrame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | Series::new("Column1", (1..=100_000).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Series::new("Column2", (1..=100_000).map(|x| x * 2).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Series::new("Column3", (1..=100_000).map(|x| x * 3).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | Series::new("Column4", (1..=100_000).map(|x| x * 4).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Series::new("Column5", (1..=100_000).map(|x| x * 5).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvWriter` [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | CsvWriter::new(&mut file) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `CsvWriter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataType` [INFO] [stdout] --> src/main.rs:94:58 [INFO] [stdout] | [INFO] [stdout] 94 | let targets_series = df.column(target_column)?.cast(&DataType::Float64)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataType` [INFO] [stdout] --> src/main.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | let col_series = df.column(col_name)?.cast(&DataType::Float64)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DataFrame` in this scope [INFO] [stdout] --> src/main.rs:84:33 [INFO] [stdout] | [INFO] [stdout] 84 | fn train_linear_regression(df: &DataFrame, target: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvReader` [INFO] [stdout] --> src/main.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let df = CsvReader::new(reader) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `CsvReader` [INFO] [stdout] | help: a struct with a similar name exists: `BufReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `linfa_datasets` [INFO] [stdout] --> src/main.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let dataset = linfa_datasets::diabetes(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `linfa_datasets` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linfa_datasets`, use `cargo add linfa_datasets` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataFrame` [INFO] [stdout] --> src/main.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | let mut df = DataFrame::new(vec![ [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `DataFrame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | Series::new("Column1", (1..=100_000).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Series::new("Column2", (1..=100_000).map(|x| x * 2).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Series::new("Column3", (1..=100_000).map(|x| x * 3).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "candle_ml") due to 18 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | Series::new("Column4", (1..=100_000).map(|x| x * 4).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Series` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Series::new("Column5", (1..=100_000).map(|x| x * 5).collect::>()), [INFO] [stdout] | ^^^^^^ use of undeclared type `Series` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsvWriter` [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | CsvWriter::new(&mut file) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `CsvWriter` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "rust_ml_training") due to 17 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataType` [INFO] [stdout] --> src/main.rs:94:58 [INFO] [stdout] | [INFO] [stdout] 94 | let targets_series = df.column(target_column)?.cast(&DataType::Float64)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataType` [INFO] [stdout] --> src/main.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | let col_series = df.column(col_name)?.cast(&DataType::Float64)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml_training` (bin "rust_ml_training" test) due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "a89479c8fe7147e549a17aecfcf6e5dcb311134d72e59dce383ce9dc19c04750", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a89479c8fe7147e549a17aecfcf6e5dcb311134d72e59dce383ce9dc19c04750", kill_on_drop: false }` [INFO] [stdout] a89479c8fe7147e549a17aecfcf6e5dcb311134d72e59dce383ce9dc19c04750