You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
I get the error message from the title of this issue. It's not very informative what exactly the problem is or how i can fix this. I don't know if this is a problem in my code or in the library code.
» RUST_BACKTRACE=1 cargo run
Compiling rust v0.1.0 (/home/flip111/titanic/linear regression/rust)
Finished dev [unoptimized + debuginfo] target(s) in 2.23s
Running `target/debug/rust`
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `891`,
right: `714`', /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rulinalg-0.3.7/src/vector.rs:314:9
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:76
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:60
4: core::fmt::write
at src/libcore/fmt/mod.rs:1030
5: std::io::Write::write_fmt
at src/libstd/io/mod.rs:1412
6: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:64
7: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:49
8: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:196
9: std::panicking::default_hook
at src/libstd/panicking.rs:210
10: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:473
11: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:380
12: std::panicking::begin_panic_fmt
at src/libstd/panicking.rs:335
13: rulinalg::vector::Vector<T>::elemul
at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty-machine-0.5.4/<::std::macros::panic macros>:9
14: <rusty_machine::learning::toolkit::cost_fn::CrossEntropyError as rusty_machine::learning::toolkit::cost_fn::CostFunc<rulinalg::vector::Vector<f64>>>::cost
at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty-machine-0.5.4/src/learning/toolkit/cost_fn.rs:87
15: <rusty_machine::learning::logistic_reg::BaseLogisticRegressor as rusty_machine::learning::optim::Optimizable>::compute_grad
at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty-machine-0.5.4/src/learning/logistic_reg.rs:190
16: <rusty_machine::learning::optim::grad_desc::GradientDesc as rusty_machine::learning::optim::OptimAlgorithm<M>>::optimize
at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty-machine-0.5.4/src/learning/optim/grad_desc.rs:83
17: <rusty_machine::learning::logistic_reg::LogisticRegressor<A> as rusty_machine::learning::SupModel<rulinalg::matrix::Matrix<f64>,rulinalg::vector::Vector<f64>>>::train
at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty-machine-0.5.4/src/learning/logistic_reg.rs:122
18: rust::run
at src/main.rs:167
19: rust::main
at src/main.rs:178
20: std::rt::lang_start::{{closure}}
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/rt.rs:64
21: std::rt::lang_start_internal::{{closure}}
at src/libstd/rt.rs:49
22: std::panicking::try::do_call
at src/libstd/panicking.rs:292
23: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:80
24: std::panicking::try
at src/libstd/panicking.rs:271
25: std::panic::catch_unwind
at src/libstd/panic.rs:394
26: std::rt::lang_start_internal
at src/libstd/rt.rs:48
27: std::rt::lang_start
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/rt.rs:64
28: main
29: __libc_start_main
30: _start
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I get the error message from the title of this issue. It's not very informative what exactly the problem is or how i can fix this. I don't know if this is a problem in my code or in the library code.
Code: https://gist.github.com/flip111/af93e5597df5b35ca45a69d0e3571290
Terminal:
The text was updated successfully, but these errors were encountered: