[INFO] cloning repository https://github.com/TheSandwichCoder/RustNeuralNetwork [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheSandwichCoder/RustNeuralNetwork" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheSandwichCoder%2FRustNeuralNetwork", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheSandwichCoder%2FRustNeuralNetwork'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d0d25c055a4716fb6eb9c0b147ecf69a41e302d [INFO] checking TheSandwichCoder/RustNeuralNetwork against try#723ab942d877517caf445dafde0416803ef56501 for pr-143857 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheSandwichCoder%2FRustNeuralNetwork" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TheSandwichCoder/RustNeuralNetwork [INFO] finished tweaking git repo https://github.com/TheSandwichCoder/RustNeuralNetwork [INFO] tweaked toml for git repo https://github.com/TheSandwichCoder/RustNeuralNetwork written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TheSandwichCoder/RustNeuralNetwork on toolchain 723ab942d877517caf445dafde0416803ef56501 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TheSandwichCoder/RustNeuralNetwork 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" "+723ab942d877517caf445dafde0416803ef56501" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08af83527ba67d46a261e4b1ffee0a885afbf6bae08290f7936897e87347fe43 [INFO] running `Command { std: "docker" "start" "-a" "08af83527ba67d46a261e4b1ffee0a885afbf6bae08290f7936897e87347fe43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08af83527ba67d46a261e4b1ffee0a885afbf6bae08290f7936897e87347fe43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08af83527ba67d46a261e4b1ffee0a885afbf6bae08290f7936897e87347fe43", kill_on_drop: false }` [INFO] [stdout] 08af83527ba67d46a261e4b1ffee0a885afbf6bae08290f7936897e87347fe43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b42e0c68713fc8447794971f3c902e216b3336ee9e45f0c2fabc0caa4ed4700 [INFO] running `Command { std: "docker" "start" "-a" "8b42e0c68713fc8447794971f3c902e216b3336ee9e45f0c2fabc0caa4ed4700", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking NeuralNetwork v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `activation_functions::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use activation_functions::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std:: cmp` [INFO] [stdout] --> src/activation_functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std:: cmp; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activation_functions::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use activation_functions::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/data.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/data.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/nn.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `data::rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/nn.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | perc.weights.push(rng.gen_range(-1.0..1.0)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `data::rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/nn.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | perc.bias = rng.gen_range(-1.0..1.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std:: cmp` [INFO] [stdout] --> src/activation_functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std:: cmp; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/data.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/data.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/nn.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `data::rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/nn.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | perc.weights.push(rng.gen_range(-1.0..1.0)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `data::rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/nn.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | perc.bias = rng.gen_range(-1.0..1.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut rdr = ReaderBuilder::new() [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/nn.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..n_inputs{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perc_j` [INFO] [stdout] --> src/nn.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | for perc_j in 0..nn.layer_dim[layer_i]{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_perc_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perc_i` [INFO] [stdout] --> src/nn.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | for perc_i in 0..nn.layer_dim[layer_i]{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_perc_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut rdr = ReaderBuilder::new() [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nn.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | let mut perc = &mut perc_layer[perc_i]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/nn.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..n_inputs{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prediction` [INFO] [stdout] --> src/train.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let prediction = classify(&output); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prediction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/train.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut output = model.get_outputs(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perc_j` [INFO] [stdout] --> src/nn.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | for perc_j in 0..nn.layer_dim[layer_i]{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_perc_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perc_i` [INFO] [stdout] --> src/nn.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | for perc_i in 0..nn.layer_dim[layer_i]{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_perc_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `show_data` is never used [INFO] [stdout] --> src/data.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl DataHandler{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn show_data(&self, start: usize, end: usize){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/activation_functions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn sigmoid(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deriv_sigmoid` is never used [INFO] [stdout] --> src/activation_functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn deriv_sigmoid(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross_entropy_loss` is never used [INFO] [stdout] --> src/activation_functions.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn cross_entropy_loss(predicted: &[f32], target: &[f32]) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `lr` should have an upper case name [INFO] [stdout] --> src/nn.rs:113:7 [INFO] [stdout] | [INFO] [stdout] 113 | const lr: f32 = -0.05; // 0.0003 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 113 - const lr: f32 = -0.05; // 0.0003 [INFO] [stdout] 113 + const LR: f32 = -0.05; // 0.0003 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mr` should have an upper case name [INFO] [stdout] --> src/nn.rs:114:7 [INFO] [stdout] | [INFO] [stdout] 114 | const mr: f32 = 0.9; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 114 - const mr: f32 = 0.9; [INFO] [stdout] 114 + const MR: f32 = 0.9; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nn.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | let mut perc = &mut perc_layer[perc_i]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/nn.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | fs::write("neuralnets/nn1.txt", file_txt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | let _ = fs::write("neuralnets/nn1.txt", file_txt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ReLu` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ReLu(x: f32) -> f32{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deriv_ReLu` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn deriv_ReLu(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `deriv_re_lu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prediction` [INFO] [stdout] --> src/train.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let prediction = classify(&output); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prediction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/train.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut output = model.get_outputs(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `show_data` is never used [INFO] [stdout] --> src/data.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl DataHandler{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn show_data(&self, start: usize, end: usize){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/activation_functions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn sigmoid(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deriv_sigmoid` is never used [INFO] [stdout] --> src/activation_functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn deriv_sigmoid(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross_entropy_loss` is never used [INFO] [stdout] --> src/activation_functions.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn cross_entropy_loss(predicted: &[f32], target: &[f32]) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `lr` should have an upper case name [INFO] [stdout] --> src/nn.rs:113:7 [INFO] [stdout] | [INFO] [stdout] 113 | const lr: f32 = -0.05; // 0.0003 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 113 - const lr: f32 = -0.05; // 0.0003 [INFO] [stdout] 113 + const LR: f32 = -0.05; // 0.0003 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mr` should have an upper case name [INFO] [stdout] --> src/nn.rs:114:7 [INFO] [stdout] | [INFO] [stdout] 114 | const mr: f32 = 0.9; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 114 - const mr: f32 = 0.9; [INFO] [stdout] 114 + const MR: f32 = 0.9; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/nn.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | fs::write("neuralnets/nn1.txt", file_txt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | let _ = fs::write("neuralnets/nn1.txt", file_txt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ReLu` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ReLu(x: f32) -> f32{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `re_lu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deriv_ReLu` should have a snake case name [INFO] [stdout] --> src/activation_functions.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn deriv_ReLu(x: f32) -> f32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `deriv_re_lu` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.61s [INFO] running `Command { std: "docker" "inspect" "8b42e0c68713fc8447794971f3c902e216b3336ee9e45f0c2fabc0caa4ed4700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b42e0c68713fc8447794971f3c902e216b3336ee9e45f0c2fabc0caa4ed4700", kill_on_drop: false }` [INFO] [stdout] 8b42e0c68713fc8447794971f3c902e216b3336ee9e45f0c2fabc0caa4ed4700