[INFO] fetching crate scorch 0.1.1... [INFO] testing scorch-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate scorch 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate scorch 0.1.1 [INFO] finished tweaking crates.io crate scorch 0.1.1 [INFO] tweaked toml for crates.io crate scorch 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scorch 0.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate scorch 0.1.1 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ffeaca0ff6c4d98bbe7b139842a9c7cae5a7720e58be4d08e3694d7325cb91e [INFO] running `Command { std: "docker" "start" "-a" "5ffeaca0ff6c4d98bbe7b139842a9c7cae5a7720e58be4d08e3694d7325cb91e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ffeaca0ff6c4d98bbe7b139842a9c7cae5a7720e58be4d08e3694d7325cb91e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ffeaca0ff6c4d98bbe7b139842a9c7cae5a7720e58be4d08e3694d7325cb91e", kill_on_drop: false }` [INFO] [stdout] 5ffeaca0ff6c4d98bbe7b139842a9c7cae5a7720e58be4d08e3694d7325cb91e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4606b4c036f7ec96e847ce9b16775d1ecf7bda8388d008de20607e32f6128b0d [INFO] running `Command { std: "docker" "start" "-a" "4606b4c036f7ec96e847ce9b16775d1ecf7bda8388d008de20607e32f6128b0d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [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 scorch v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.76s [INFO] running `Command { std: "docker" "inspect" "4606b4c036f7ec96e847ce9b16775d1ecf7bda8388d008de20607e32f6128b0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4606b4c036f7ec96e847ce9b16775d1ecf7bda8388d008de20607e32f6128b0d", kill_on_drop: false }` [INFO] [stdout] 4606b4c036f7ec96e847ce9b16775d1ecf7bda8388d008de20607e32f6128b0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39f9a1dc689c3bc3cfd061908c4c961eee55834a6996838e7276bb575e8cab19 [INFO] running `Command { std: "docker" "start" "-a" "39f9a1dc689c3bc3cfd061908c4c961eee55834a6996838e7276bb575e8cab19", kill_on_drop: false }` [INFO] [stderr] Compiling scorch v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "39f9a1dc689c3bc3cfd061908c4c961eee55834a6996838e7276bb575e8cab19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39f9a1dc689c3bc3cfd061908c4c961eee55834a6996838e7276bb575e8cab19", kill_on_drop: false }` [INFO] [stdout] 39f9a1dc689c3bc3cfd061908c4c961eee55834a6996838e7276bb575e8cab19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1d615eda8a2608fffc15b2fbf00593da490ae56a399782f65b5156e9fdcd9b17 [INFO] running `Command { std: "docker" "start" "-a" "1d615eda8a2608fffc15b2fbf00593da490ae56a399782f65b5156e9fdcd9b17", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scorch-4c56678f8e9559ae) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::test_trivial ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests scorch [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test src/activation.rs - activation::sigmoid_derivative (line 36) ... FAILED [INFO] [stdout] test src/activation.rs - activation::relu (line 131) ... FAILED [INFO] [stdout] test src/activation.rs - activation::sigmoid (line 17) ... FAILED [INFO] [stdout] test src/activation.rs - activation::tanh_derivative (line 79) ... FAILED [INFO] [stdout] test src/activation.rs - activation::softmax (line 106) ... FAILED [INFO] [stdout] test src/layer.rs - layer::Layer::backward (line 85) ... FAILED [INFO] [stdout] test src/activation.rs - activation::linear (line 154) ... FAILED [INFO] [stdout] test src/activation.rs - activation::tanh (line 61) ... FAILED [INFO] [stdout] test src/loss.rs - loss::LossFunction (line 11) ... FAILED [INFO] [stdout] test src/loss.rs - loss::MSE (line 30) ... FAILED [INFO] [stdout] test src/layer.rs - layer::Layer::forward (line 52) ... FAILED [INFO] [stdout] test src/loss.rs - loss::CROSS_ENTROPY (line 170) ... FAILED [INFO] [stdout] test src/layer.rs - layer::Layer::new (line 18) ... FAILED [INFO] [stdout] test src/loss.rs - loss::MAE (line 99) ... FAILED [INFO] [stdout] test src/loss.rs - loss::cross_entropy_derivative (line 225) ... FAILED [INFO] [stdout] test src/loss.rs - loss::mae_derivative (line 150) ... FAILED [INFO] [stdout] test src/loss.rs - loss::mean_squared_error (line 53) ... FAILED [INFO] [stdout] test src/neural_network.rs - neural_network::NeuralNetwork<'a>::new (line 17) ... FAILED [INFO] [stdout] test src/loss.rs - loss::cross_entropy (line 193) ... FAILED [INFO] [stdout] test src/loss.rs - loss::mse_derivative (line 79) ... FAILED [INFO] [stdout] test src/neural_network.rs - neural_network::NeuralNetwork<'a>::train (line 95) ... FAILED [INFO] [stdout] test src/loss.rs - loss::mean_absolute_error (line 122) ... FAILED [INFO] [stdout] test src/neural_network.rs - neural_network::NeuralNetwork<'a>::forward (line 51) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/activation.rs - activation::sigmoid_derivative (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `sigmoid_derivative` in this scope [INFO] [stdout] --> src/activation.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = sigmoid_derivative(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::sigmoid_derivative; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::relu (line 131) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `relu` in this scope [INFO] [stdout] --> src/activation.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = relu(&input); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::relu; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::sigmoid (line 17) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `sigmoid` in this scope [INFO] [stdout] --> src/activation.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = sigmoid(&input); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::sigmoid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::tanh_derivative (line 79) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `tanh_derivative` in this scope [INFO] [stdout] --> src/activation.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = tanh_derivative(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::tanh_derivative; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::softmax (line 106) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `softmax` in this scope [INFO] [stdout] --> src/activation.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = softmax(&input); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::softmax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer::Layer::backward (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/layer.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut layer = Layer::new(3, 2, activation::relu); [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/layer.rs:86:34 [INFO] [stdout] | [INFO] [stdout] 3 | let mut layer = Layer::new(3, 2, activation::relu); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::linear (line 154) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `linear` in this scope [INFO] [stdout] --> src/activation.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = linear(&input); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::linear; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/activation.rs - activation::tanh (line 61) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `tanh` in this scope [INFO] [stdout] --> src/activation.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 4 | let output = tanh(&input); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation::tanh; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::LossFunction (line 11) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LossFunction` in this scope [INFO] [stdout] --> src/loss.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 3 | let loss = LossFunction { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss::LossFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mean_squared_error` in this scope [INFO] [stdout] --> src/loss.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 4 | function: mean_squared_error, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mse_derivative` in this scope [INFO] [stdout] --> src/loss.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 5 | derivative: mse_derivative, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::MSE (line 30) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `MSE` in this scope [INFO] [stdout] --> src/loss.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 5 | let loss_value = MSE.function(&predictions, &targets); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss::MSE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MSE` in this scope [INFO] [stdout] --> src/loss.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 6 | let gradients = MSE.derivative(&predictions, &targets); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss::MSE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer::Layer::forward (line 52) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/layer.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = Layer::new(3, 2, activation::relu); [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/layer.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = Layer::new(3, 2, activation::relu); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::CROSS_ENTROPY (line 170) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `CrossEntropy` in this scope [INFO] [stdout] --> src/loss.rs:173:18 [INFO] [stdout] | [INFO] [stdout] 5 | let loss_value = CrossEntropy.function(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CrossEntropy` in this scope [INFO] [stdout] --> src/loss.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 6 | let gradients = CrossEntropy.derivative(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer::Layer::new (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/layer.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = Layer::new(10, 5, activation::relu); [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/layer.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = Layer::new(10, 5, activation::relu); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::MAE (line 99) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `MAE` in this scope [INFO] [stdout] --> src/loss.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 5 | let loss_value = MAE.function(&predictions, &targets); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss::MAE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAE` in this scope [INFO] [stdout] --> src/loss.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 6 | let gradients = MAE.derivative(&predictions, &targets); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss::MAE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::cross_entropy_derivative (line 225) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `cross_entropy_derivative` in this scope [INFO] [stdout] --> src/loss.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 5 | let gradients = cross_entropy_derivative(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::mae_derivative (line 150) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `mae_derivative` in this scope [INFO] [stdout] --> src/loss.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 5 | let gradients = mae_derivative(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::mean_squared_error (line 53) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `mean_squared_error` in this scope [INFO] [stdout] --> src/loss.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 5 | let loss = mean_squared_error(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/neural_network.rs - neural_network::NeuralNetwork<'a>::new (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NeuralNetwork` [INFO] [stdout] --> src/neural_network.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 7 | let mut nn = NeuralNetwork::new(&mut layers); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NeuralNetwork` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::NeuralNetwork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::cross_entropy (line 193) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `cross_entropy` in this scope [INFO] [stdout] --> src/loss.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 5 | let loss = cross_entropy(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::mse_derivative (line 79) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `mse_derivative` in this scope [INFO] [stdout] --> src/loss.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 5 | let gradients = mse_derivative(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/neural_network.rs - neural_network::NeuralNetwork<'a>::train (line 95) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NeuralNetwork` [INFO] [stdout] --> src/neural_network.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 7 | let mut nn = NeuralNetwork::new(&mut layers); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NeuralNetwork` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::NeuralNetwork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `loss` [INFO] [stdout] --> src/neural_network.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 18 | nn.train(&inputs, &targets, 0.01, loss::MSE, 1000); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `loss` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/loss.rs, use `mod loss` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod loss; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::loss; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/loss.rs - loss::mean_absolute_error (line 122) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `mean_absolute_error` in this scope [INFO] [stdout] --> src/loss.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 5 | let loss = mean_absolute_error(&predictions, &targets); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/neural_network.rs - neural_network::NeuralNetwork<'a>::forward (line 51) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 4 | Layer::new(3, 5, activation::relu), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layer` [INFO] [stdout] --> src/neural_network.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^ use of undeclared type `Layer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `activation` [INFO] [stdout] --> src/neural_network.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 5 | Layer::new(5, 2, activation::softmax), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `activation` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/activation.rs, use `mod activation` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod activation; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::activation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NeuralNetwork` [INFO] [stdout] --> src/neural_network.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 7 | let mut nn = NeuralNetwork::new(&mut layers); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NeuralNetwork` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scorch::NeuralNetwork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/activation.rs - activation::linear (line 154) [INFO] [stdout] src/activation.rs - activation::relu (line 131) [INFO] [stdout] src/activation.rs - activation::sigmoid (line 17) [INFO] [stdout] src/activation.rs - activation::sigmoid_derivative (line 36) [INFO] [stdout] src/activation.rs - activation::softmax (line 106) [INFO] [stdout] src/activation.rs - activation::tanh (line 61) [INFO] [stdout] src/activation.rs - activation::tanh_derivative (line 79) [INFO] [stdout] src/layer.rs - layer::Layer::backward (line 85) [INFO] [stdout] src/layer.rs - layer::Layer::forward (line 52) [INFO] [stdout] src/layer.rs - layer::Layer::new (line 18) [INFO] [stdout] src/loss.rs - loss::CROSS_ENTROPY (line 170) [INFO] [stdout] src/loss.rs - loss::LossFunction (line 11) [INFO] [stdout] src/loss.rs - loss::MAE (line 99) [INFO] [stdout] src/loss.rs - loss::MSE (line 30) [INFO] [stdout] src/loss.rs - loss::cross_entropy (line 193) [INFO] [stdout] src/loss.rs - loss::cross_entropy_derivative (line 225) [INFO] [stdout] src/loss.rs - loss::mae_derivative (line 150) [INFO] [stdout] src/loss.rs - loss::mean_absolute_error (line 122) [INFO] [stdout] src/loss.rs - loss::mean_squared_error (line 53) [INFO] [stdout] src/loss.rs - loss::mse_derivative (line 79) [INFO] [stdout] src/neural_network.rs - neural_network::NeuralNetwork<'a>::forward (line 51) [INFO] [stdout] src/neural_network.rs - neural_network::NeuralNetwork<'a>::new (line 17) [INFO] [stdout] src/neural_network.rs - neural_network::NeuralNetwork<'a>::train (line 95) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.59s; merged doctests compilation took 0.26s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1d615eda8a2608fffc15b2fbf00593da490ae56a399782f65b5156e9fdcd9b17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d615eda8a2608fffc15b2fbf00593da490ae56a399782f65b5156e9fdcd9b17", kill_on_drop: false }` [INFO] [stdout] 1d615eda8a2608fffc15b2fbf00593da490ae56a399782f65b5156e9fdcd9b17