[INFO] cloning repository https://github.com/MrLeaw/rust-deep-learning
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrLeaw/rust-deep-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrLeaw%2Frust-deep-learning", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrLeaw%2Frust-deep-learning'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 906b096aff71cefa2c0fcea25446d76d16c25ad0
[INFO] testing MrLeaw/rust-deep-learning against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrLeaw%2Frust-deep-learning" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/MrLeaw/rust-deep-learning
[INFO] finished tweaking git repo https://github.com/MrLeaw/rust-deep-learning
[INFO] tweaked toml for git repo https://github.com/MrLeaw/rust-deep-learning written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/MrLeaw/rust-deep-learning on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/MrLeaw/rust-deep-learning 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" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded console v0.15.10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a41884f6d943679dd66d5b22be038e7656b3e342624aab17769ca0420f485fef
[INFO] running `Command { std: "docker" "start" "-a" "a41884f6d943679dd66d5b22be038e7656b3e342624aab17769ca0420f485fef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a41884f6d943679dd66d5b22be038e7656b3e342624aab17769ca0420f485fef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a41884f6d943679dd66d5b22be038e7656b3e342624aab17769ca0420f485fef", kill_on_drop: false }`
[INFO] [stdout] a41884f6d943679dd66d5b22be038e7656b3e342624aab17769ca0420f485fef
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bd9837701b43deb5cf63955b6fb9b0e9608ce2295b9bff67360276a1cebc218b
[INFO] running `Command { std: "docker" "start" "-a" "bd9837701b43deb5cf63955b6fb9b0e9608ce2295b9bff67360276a1cebc218b", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-width v0.2.0
[INFO] [stderr]    Compiling number_prefix v0.4.0
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling console v0.15.10
[INFO] [stderr]    Compiling indicatif v0.17.9
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.85
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling deep-learning v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `estimator_index`
[INFO] [stdout]   --> src/gradient_boosting_machine.rs:52:17
[INFO] [stdout]    |
[INFO] [stdout] 52 |             for estimator_index in 0..self.n_estimators {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_estimator_index`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `activation`
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:148:42
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stdout]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:285:13
[INFO] [stdout]     |
[INFO] [stdout] 285 |         let mut output_layer_inputs = layer_outputs.last().unwrap_or(&inputs).clone();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `kernel_linear` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:206:8
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl SupportVectorMachine {
[INFO] [stdout]     | ------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 206 |     fn kernel_linear(x1: &Vec<f64>, x2: &Vec<f64>) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `standardize` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:246:4
[INFO] [stdout]     |
[INFO] [stdout] 246 | fn standardize(data: &mut Vec<Vec<f64>>) {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convert_y` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:280:4
[INFO] [stdout]     |
[INFO] [stdout] 280 | fn convert_y(y: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]  --> src/fully_connected_neural_network.rs:4:4
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn sigmoid(x: f64) -> f64 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]  --> src/fully_connected_neural_network.rs:8:4
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn relu(x: f64) -> f64 {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `linear` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:16:4
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn linear(x: f64) -> f64 {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `leaky_relu` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn leaky_relu(x: f64) -> f64 {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `softmax` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:28:4
[INFO] [stdout]    |
[INFO] [stdout] 28 | fn softmax(x: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Activation` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:34:6
[INFO] [stdout]    |
[INFO] [stdout] 34 | enum Activation {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ModelBuilder` is never constructed
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct ModelBuilder {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `input_nodes`, `hidden_layer`, `output_nodes`, and `build` are never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | impl ModelBuilder {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 49 |     pub fn new() -> ModelBuilder {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn input_nodes(&mut self, num_input_nodes: usize) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn hidden_layer(&mut self, num_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |     pub fn output_nodes(&mut self, num_output_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72 |     pub fn build(&self) -> NeuralNetwork {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `activate`, `activate_vector`, and `derivative` are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:83:8
[INFO] [stdout]     |
[INFO] [stdout]  82 | impl Activation {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout]  83 |     fn activate(&self, x: f64) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     fn activate_vector(&self, x: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     fn derivative(&self, x: f64) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:124:8
[INFO] [stdout]     |
[INFO] [stdout] 124 | struct Node {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `forward` are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:141:8
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl Node {
[INFO] [stdout]     | --------- associated items in this implementation
[INFO] [stdout] 141 |     fn new(num_weights: usize) -> Node {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NeuralNetwork` is never constructed
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:170:8
[INFO] [stdout]     |
[INFO] [stdout] 170 | struct NeuralNetwork {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:185:8
[INFO] [stdout]     |
[INFO] [stdout] 184 | impl NeuralNetwork {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 185 |     fn new(
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 213 |     pub fn predict(&self, inputs: Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 217 |     pub fn predict_one(&self, inputs: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     fn forward(&self, inputs: &Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 240 |     fn train(&mut self, train_x: Vec<Vec<f64>>, train_y: Vec<Vec<f64>>, lr: f64, iters: u64) {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     fn mse(&self, x_train: Vec<Vec<f64>>, y_train: Vec<f64>) -> f64 {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     fn train_iter(&mut self, inputs: &Vec<f64>, targets: &Vec<f64>, lr: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `normalize_x_y` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:366:4
[INFO] [stdout]     |
[INFO] [stdout] 366 | fn normalize_x_y(x: &mut Vec<Vec<f64>>, y: &mut Vec<f64>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `normalize_column` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:378:4
[INFO] [stdout]     |
[INFO] [stdout] 378 | fn normalize_column(column: &mut Vec<f64>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `transpose` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:386:4
[INFO] [stdout]     |
[INFO] [stdout] 386 | fn transpose(x: &Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_logistic_regression_iris` is never used
[INFO] [stdout]    --> src/main.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn run_logistic_regression_iris() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.46s
[INFO] running `Command { std: "docker" "inspect" "bd9837701b43deb5cf63955b6fb9b0e9608ce2295b9bff67360276a1cebc218b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bd9837701b43deb5cf63955b6fb9b0e9608ce2295b9bff67360276a1cebc218b", kill_on_drop: false }`
[INFO] [stdout] bd9837701b43deb5cf63955b6fb9b0e9608ce2295b9bff67360276a1cebc218b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 58de8546d8cef31b9c8fe61d6d4dec89e9d3d225b3b2079ae76c713570d67f2d
[INFO] running `Command { std: "docker" "start" "-a" "58de8546d8cef31b9c8fe61d6d4dec89e9d3d225b3b2079ae76c713570d67f2d", kill_on_drop: false }`
[INFO] [stderr]    Compiling deep-learning v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `estimator_index`
[INFO] [stdout]   --> src/gradient_boosting_machine.rs:52:17
[INFO] [stdout]    |
[INFO] [stdout] 52 |             for estimator_index in 0..self.n_estimators {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_estimator_index`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `activation`
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:148:42
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stdout]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:285:13
[INFO] [stdout]     |
[INFO] [stdout] 285 |         let mut output_layer_inputs = layer_outputs.last().unwrap_or(&inputs).clone();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `kernel_linear` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:206:8
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl SupportVectorMachine {
[INFO] [stdout]     | ------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 206 |     fn kernel_linear(x1: &Vec<f64>, x2: &Vec<f64>) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `standardize` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:246:4
[INFO] [stdout]     |
[INFO] [stdout] 246 | fn standardize(data: &mut Vec<Vec<f64>>) {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convert_y` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:280:4
[INFO] [stdout]     |
[INFO] [stdout] 280 | fn convert_y(y: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]  --> src/fully_connected_neural_network.rs:4:4
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn sigmoid(x: f64) -> f64 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]  --> src/fully_connected_neural_network.rs:8:4
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn relu(x: f64) -> f64 {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `linear` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:16:4
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn linear(x: f64) -> f64 {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `leaky_relu` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn leaky_relu(x: f64) -> f64 {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `softmax` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:28:4
[INFO] [stdout]    |
[INFO] [stdout] 28 | fn softmax(x: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Activation` is never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:34:6
[INFO] [stdout]    |
[INFO] [stdout] 34 | enum Activation {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ModelBuilder` is never constructed
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct ModelBuilder {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `input_nodes`, `hidden_layer`, `output_nodes`, and `build` are never used
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | impl ModelBuilder {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 49 |     pub fn new() -> ModelBuilder {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn input_nodes(&mut self, num_input_nodes: usize) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn hidden_layer(&mut self, num_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |     pub fn output_nodes(&mut self, num_output_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72 |     pub fn build(&self) -> NeuralNetwork {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `activate`, `activate_vector`, and `derivative` are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:83:8
[INFO] [stdout]     |
[INFO] [stdout]  82 | impl Activation {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout]  83 |     fn activate(&self, x: f64) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     fn activate_vector(&self, x: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     fn derivative(&self, x: f64) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:124:8
[INFO] [stdout]     |
[INFO] [stdout] 124 | struct Node {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `forward` are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:141:8
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl Node {
[INFO] [stdout]     | --------- associated items in this implementation
[INFO] [stdout] 141 |     fn new(num_weights: usize) -> Node {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NeuralNetwork` is never constructed
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:170:8
[INFO] [stdout]     |
[INFO] [stdout] 170 | struct NeuralNetwork {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:185:8
[INFO] [stdout]     |
[INFO] [stdout] 184 | impl NeuralNetwork {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 185 |     fn new(
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 213 |     pub fn predict(&self, inputs: Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 217 |     pub fn predict_one(&self, inputs: Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     fn forward(&self, inputs: &Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 240 |     fn train(&mut self, train_x: Vec<Vec<f64>>, train_y: Vec<Vec<f64>>, lr: f64, iters: u64) {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     fn mse(&self, x_train: Vec<Vec<f64>>, y_train: Vec<f64>) -> f64 {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     fn train_iter(&mut self, inputs: &Vec<f64>, targets: &Vec<f64>, lr: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `normalize_x_y` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:366:4
[INFO] [stdout]     |
[INFO] [stdout] 366 | fn normalize_x_y(x: &mut Vec<Vec<f64>>, y: &mut Vec<f64>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `normalize_column` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:378:4
[INFO] [stdout]     |
[INFO] [stdout] 378 | fn normalize_column(column: &mut Vec<f64>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `transpose` is never used
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:386:4
[INFO] [stdout]     |
[INFO] [stdout] 386 | fn transpose(x: &Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `load_iris_dataset`
[INFO] [stdout]    --> src/gradient_boosting_machine.rs:149:55
[INFO] [stdout]     |
[INFO] [stdout] 149 |     use crate::datasets::{load_breast_cancer_dataset, load_iris_dataset, train_test_split};
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_logistic_regression_iris` is never used
[INFO] [stdout]    --> src/main.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn run_logistic_regression_iris() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `entr`
[INFO] [stdout]    --> src/decision_tree.rs:391:13
[INFO] [stdout]     |
[INFO] [stdout] 391 |         let entr = entropy(&data);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_entr`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `score`
[INFO] [stdout]    --> src/decision_tree.rs:410:17
[INFO] [stdout]     |
[INFO] [stdout] 410 |             let score = information_gain(&y, &val, 2.5);
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_score`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `estimator_index`
[INFO] [stdout]   --> src/gradient_boosting_machine.rs:52:17
[INFO] [stdout]    |
[INFO] [stdout] 52 |             for estimator_index in 0..self.n_estimators {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_estimator_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `activation`
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:148:42
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stdout]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/fully_connected_neural_network.rs:285:13
[INFO] [stdout]     |
[INFO] [stdout] 285 |         let mut output_layer_inputs = layer_outputs.last().unwrap_or(&inputs).clone();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `kernel_linear` is never used
[INFO] [stdout]    --> src/support_vector_machine.rs:206:8
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl SupportVectorMachine {
[INFO] [stdout]     | ------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 206 |     fn kernel_linear(x1: &Vec<f64>, x2: &Vec<f64>) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Linear`, `LeakyRelu`, and `Softmax` are never constructed
[INFO] [stdout]   --> src/fully_connected_neural_network.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | enum Activation {
[INFO] [stdout]    |      ---------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 37 |     Linear,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 38 |     LeakyRelu,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 39 |     Softmax,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Activation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `X` should have a snake case name
[INFO] [stdout]    --> src/decision_tree.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let X = vec![
[INFO] [stdout]     |             ^ help: convert the identifier to snake case (notice the capitalization): `x`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.81s
[INFO] running `Command { std: "docker" "inspect" "58de8546d8cef31b9c8fe61d6d4dec89e9d3d225b3b2079ae76c713570d67f2d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "58de8546d8cef31b9c8fe61d6d4dec89e9d3d225b3b2079ae76c713570d67f2d", kill_on_drop: false }`
[INFO] [stdout] 58de8546d8cef31b9c8fe61d6d4dec89e9d3d225b3b2079ae76c713570d67f2d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] c98fde37d4522a2279eb154958fa8a140f28a2f5560bd4345221202d28a96950
[INFO] running `Command { std: "docker" "start" "-a" "c98fde37d4522a2279eb154958fa8a140f28a2f5560bd4345221202d28a96950", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `estimator_index`
[INFO] [stderr]   --> src/gradient_boosting_machine.rs:52:17
[INFO] [stderr]    |
[INFO] [stderr] 52 |             for estimator_index in 0..self.n_estimators {
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_estimator_index`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `activation`
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:148:42
[INFO] [stderr]     |
[INFO] [stderr] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stderr]     |                                          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activation`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:285:13
[INFO] [stderr]     |
[INFO] [stderr] 285 |         let mut output_layer_inputs = layer_outputs.last().unwrap_or(&inputs).clone();
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `kernel_linear` is never used
[INFO] [stderr]    --> src/support_vector_machine.rs:206:8
[INFO] [stderr]     |
[INFO] [stderr]  12 | impl SupportVectorMachine {
[INFO] [stderr]     | ------------------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 206 |     fn kernel_linear(x1: &Vec<f64>, x2: &Vec<f64>) -> f64 {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `standardize` is never used
[INFO] [stderr]    --> src/support_vector_machine.rs:246:4
[INFO] [stderr]     |
[INFO] [stderr] 246 | fn standardize(data: &mut Vec<Vec<f64>>) {
[INFO] [stderr]     |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `convert_y` is never used
[INFO] [stderr]    --> src/support_vector_machine.rs:280:4
[INFO] [stderr]     |
[INFO] [stderr] 280 | fn convert_y(y: Vec<f64>) -> Vec<f64> {
[INFO] [stderr]     |    ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sigmoid` is never used
[INFO] [stderr]  --> src/fully_connected_neural_network.rs:4:4
[INFO] [stderr]   |
[INFO] [stderr] 4 | fn sigmoid(x: f64) -> f64 {
[INFO] [stderr]   |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `relu` is never used
[INFO] [stderr]  --> src/fully_connected_neural_network.rs:8:4
[INFO] [stderr]   |
[INFO] [stderr] 8 | fn relu(x: f64) -> f64 {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `linear` is never used
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:16:4
[INFO] [stderr]    |
[INFO] [stderr] 16 | fn linear(x: f64) -> f64 {
[INFO] [stderr]    |    ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `leaky_relu` is never used
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:20:4
[INFO] [stderr]    |
[INFO] [stderr] 20 | fn leaky_relu(x: f64) -> f64 {
[INFO] [stderr]    |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `softmax` is never used
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:28:4
[INFO] [stderr]    |
[INFO] [stderr] 28 | fn softmax(x: Vec<f64>) -> Vec<f64> {
[INFO] [stderr]    |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Activation` is never used
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:34:6
[INFO] [stderr]    |
[INFO] [stderr] 34 | enum Activation {
[INFO] [stderr]    |      ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ModelBuilder` is never constructed
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:42:8
[INFO] [stderr]    |
[INFO] [stderr] 42 | struct ModelBuilder {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `input_nodes`, `hidden_layer`, `output_nodes`, and `build` are never used
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:49:12
[INFO] [stderr]    |
[INFO] [stderr] 48 | impl ModelBuilder {
[INFO] [stderr]    | ----------------- associated items in this implementation
[INFO] [stderr] 49 |     pub fn new() -> ModelBuilder {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 |     pub fn input_nodes(&mut self, num_input_nodes: usize) -> &mut Self {
[INFO] [stderr]    |            ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 62 |     pub fn hidden_layer(&mut self, num_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 67 |     pub fn output_nodes(&mut self, num_output_nodes: usize, activation: Activation) -> &mut Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 72 |     pub fn build(&self) -> NeuralNetwork {
[INFO] [stderr]    |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `activate`, `activate_vector`, and `derivative` are never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:83:8
[INFO] [stderr]     |
[INFO] [stderr]  82 | impl Activation {
[INFO] [stderr]     | --------------- methods in this implementation
[INFO] [stderr]  83 |     fn activate(&self, x: f64) -> f64 {
[INFO] [stderr]     |        ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  93 |     fn activate_vector(&self, x: Vec<f64>) -> Vec<f64> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 100 |     fn derivative(&self, x: f64) -> f64 {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Node` is never constructed
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:124:8
[INFO] [stderr]     |
[INFO] [stderr] 124 | struct Node {
[INFO] [stderr]     |        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `forward` are never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:141:8
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl Node {
[INFO] [stderr]     | --------- associated items in this implementation
[INFO] [stderr] 141 |     fn new(num_weights: usize) -> Node {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 148 |     fn forward(&self, inputs: &Vec<f64>, activation: &Activation) -> f64 {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `NeuralNetwork` is never constructed
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:170:8
[INFO] [stderr]     |
[INFO] [stderr] 170 | struct NeuralNetwork {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple associated items are never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:185:8
[INFO] [stderr]     |
[INFO] [stderr] 184 | impl NeuralNetwork {
[INFO] [stderr]     | ------------------ associated items in this implementation
[INFO] [stderr] 185 |     fn new(
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 213 |     pub fn predict(&self, inputs: Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 217 |     pub fn predict_one(&self, inputs: Vec<f64>) -> Vec<f64> {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 222 |     fn forward(&self, inputs: &Vec<f64>) -> Vec<f64> {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 240 |     fn train(&mut self, train_x: Vec<Vec<f64>>, train_y: Vec<Vec<f64>>, lr: f64, iters: u64) {
[INFO] [stderr]     |        ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 258 |     fn mse(&self, x_train: Vec<Vec<f64>>, y_train: Vec<f64>) -> f64 {
[INFO] [stderr]     |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 271 |     fn train_iter(&mut self, inputs: &Vec<f64>, targets: &Vec<f64>, lr: f64) {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `normalize_x_y` is never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:366:4
[INFO] [stderr]     |
[INFO] [stderr] 366 | fn normalize_x_y(x: &mut Vec<Vec<f64>>, y: &mut Vec<f64>) {
[INFO] [stderr]     |    ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `normalize_column` is never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:378:4
[INFO] [stderr]     |
[INFO] [stderr] 378 | fn normalize_column(column: &mut Vec<f64>) {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `transpose` is never used
[INFO] [stderr]    --> src/fully_connected_neural_network.rs:386:4
[INFO] [stderr]     |
[INFO] [stderr] 386 | fn transpose(x: &Vec<Vec<f64>>) -> Vec<Vec<f64>> {
[INFO] [stderr]     |    ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `load_iris_dataset`
[INFO] [stderr]    --> src/gradient_boosting_machine.rs:149:55
[INFO] [stderr]     |
[INFO] [stderr] 149 |     use crate::datasets::{load_breast_cancer_dataset, load_iris_dataset, train_test_split};
[INFO] [stderr]     |                                                       ^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `entr`
[INFO] [stderr]    --> src/decision_tree.rs:391:13
[INFO] [stderr]     |
[INFO] [stderr] 391 |         let entr = entropy(&data);
[INFO] [stderr]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_entr`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `score`
[INFO] [stderr]    --> src/decision_tree.rs:410:17
[INFO] [stderr]     |
[INFO] [stderr] 410 |             let score = information_gain(&y, &val, 2.5);
[INFO] [stderr]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_score`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `estimator_index`
[INFO] [stderr]   --> src/gradient_boosting_machine.rs:52:17
[INFO] [stderr]    |
[INFO] [stderr] 52 |             for estimator_index in 0..self.n_estimators {
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_estimator_index`
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Linear`, `LeakyRelu`, and `Softmax` are never constructed
[INFO] [stderr]   --> src/fully_connected_neural_network.rs:37:5
[INFO] [stderr]    |
[INFO] [stderr] 34 | enum Activation {
[INFO] [stderr]    |      ---------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 37 |     Linear,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 38 |     LeakyRelu,
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr] 39 |     Softmax,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Activation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variable `X` should have a snake case name
[INFO] [stderr]    --> src/decision_tree.rs:395:13
[INFO] [stderr]     |
[INFO] [stderr] 395 |         let X = vec![
[INFO] [stderr]     |             ^ help: convert the identifier to snake case (notice the capitalization): `x`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `deep-learning` (lib) generated 22 warnings (run `cargo fix --lib -p deep-learning` to apply 3 suggestions)
[INFO] [stderr] warning: `deep-learning` (lib test) generated 9 warnings (3 duplicates) (run `cargo fix --lib -p deep-learning --tests` to apply 4 suggestions)
[INFO] [stderr] warning: function `run_logistic_regression_iris` is never used
[INFO] [stderr]    --> src/main.rs:183:4
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn run_logistic_regression_iris() {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `deep-learning` (bin "deep-learning" test) generated 1 warning
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/deep_learning-aca47ecff68efbfa)
[INFO] [stdout] 
[INFO] [stdout] running 41 tests
[INFO] [stdout] test decision_tree::tests::test_entropy ... ok
[INFO] [stdout] test decision_tree::tests::test_information_gain ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_activation ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_neural_network_forward ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_relu ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_sigmoid ... ok
[INFO] [stdout] test linear_regression::tests::test_linear_regression_non_singular ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_node_forward ... ok
[INFO] [stdout] test gaussian_naive_bayes::tests::test_gnb ... ok
[INFO] [stdout] test support_vector_machine::tests::test_kernel_linear ... ok
[INFO] [stdout] test support_vector_machine::tests::test_kernel_polynomial ... ok
[INFO] [stdout] test support_vector_machine::tests::test_kernel_rbf ... ok
[INFO] [stdout] test support_vector_machine::tests::test_kernel_sigmoid ... ok
[INFO] [stdout] test k_nearest_neighbors::tests::test_k_nearest_neighbors ... ok
[INFO] [stdout] test logistic_regression::tests::test_logistic_regression ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_edge_case_single_feature ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_empty_data ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_no_variance ... ok
[INFO] [stdout] test stochastic_gradient_descent::tests::test_sgd ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_single_sample ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_simple_case ... ok
[INFO] [stdout] test support_vector_machine::tests::test_standardize_with_constant_feature ... ok
[INFO] [stdout] test utils::tests::test_dot_product ... ok
[INFO] [stdout] test utils::tests::test_invert_matrix ... ok
[INFO] [stdout] test utils::tests::test_identity_matrix ... ok
[INFO] [stdout] test utils::tests::test_transpose ... ok
[INFO] [stdout] test utils::tests::test_matrix_multiply ... ok
[INFO] [stdout] test decision_tree::tests::test_information_gain_real_data ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_mismatched_output_nodes - should panic ... ok
[INFO] [stdout] test linear_regression::tests::test_linear_regression - should panic ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_mismatched_targets - should panic ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_neural_network_train ... ok
[INFO] [stdout] test random_forest::tests::test_random_forest ... ok
[INFO] [stdout] test decision_tree::tests::test_best_criteria_real_data ... ok
[INFO] [stdout] test support_vector_machine::tests::test_support_vector_machine_nonlinear_kernels ... ok
[INFO] [stdout] test decision_tree::tests::test_decision_tree ... ok
[INFO] [stdout] test logistic_regression::tests::test_logistic_regression_2 ... ok
[INFO] [stdout] test support_vector_machine::tests::test_support_vector_machine ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::multiple_hidden_layers ... ok
[INFO] [stdout] test fully_connected_neural_network::tests::test_ms_error ... ok
[INFO] [stdout] test gradient_boosting_machine::tests::test_gradient_boosting_machine ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 35.25s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/deep_learning-de824b91a3a5bbe1)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests deep_learning
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "c98fde37d4522a2279eb154958fa8a140f28a2f5560bd4345221202d28a96950", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c98fde37d4522a2279eb154958fa8a140f28a2f5560bd4345221202d28a96950", kill_on_drop: false }`
[INFO] [stdout] c98fde37d4522a2279eb154958fa8a140f28a2f5560bd4345221202d28a96950
