Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Async, Concurrency, Multithreading and Parallel Computing in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Basic Struct Types for Rust Concurrency
UnsafeCell: the only foundamental struct which allows interior mutability. Other struct (e.g., Cell, RefCell, Rc, Arc, etc.) with interior mutability relies on UnsafeCell. Rc …
Rust Error: error[E0554]: `#![feature]` May Not Be Used on the Stable Release Channel
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
error[E0554]: #![feature]
may not be used on the stable release channel
--> .cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.40/src/lib.rs:239:34
|
239 | #![cfg_attr(provide_any, feature(provide_any …
fit_transform vs transform in scikit-learn
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
fit_transform
is used on training data whiletransform
is used on test data.
References¶
What and why behind fit_transform() and transform() in scikit-learn!
include! Is a Macro with Dark Power
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
- The macro
include!
can be used to inline the conent of file as long as the resulted Rust code is valid! It can be extremely flexible, however, the included file is placed in the surrounding code unhygienically. It is suggested that you limited the use ofinclude!