mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 15:19:25 +00:00
Improve comments for clarity in logistic regression, stats overview, PCA, correlation, descriptive statistics, and matrix tests
This commit is contained in:
@@ -16,7 +16,7 @@ fn student_passing_example() {
|
||||
|
||||
// Hours studied for each student
|
||||
let hours = vec![1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0];
|
||||
// 0 = fail, 1 = pass
|
||||
// Label: 0 denotes failure and 1 denotes success
|
||||
let passed = vec![0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0];
|
||||
|
||||
let x = Matrix::from_vec(hours.clone(), hours.len(), 1);
|
||||
|
@@ -6,9 +6,9 @@ use rustframe::matrix::{Axis, Matrix};
|
||||
/// Demonstrates some of the statistics utilities in Rustframe.
|
||||
///
|
||||
/// The example is split into three parts:
|
||||
/// 1. Basic descriptive statistics on a small data set.
|
||||
/// 2. Covariance and correlation calculations.
|
||||
/// 3. Simple inferential tests (t-test and chi-square).
|
||||
/// - Basic descriptive statistics on a small data set
|
||||
/// - Covariance and correlation calculations
|
||||
/// - Simple inferential tests (t-test and chi-square)
|
||||
fn main() {
|
||||
descriptive_demo();
|
||||
println!("\n-----\n");
|
||||
|
Reference in New Issue
Block a user