OliveMLLL
Your comprehensive guide to machine learning, mathematics, and programming. import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression
Load and explore data
data = pd.read_csv(‘dataset.csv’) print(data.head()) print(data.info())
Prepare features and target
X = data.drop(‘target’, axis=1) y = data[‘target’]
Split data
X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2, random_state=42 )
Train model
model = LinearRegression() model.fit(X_train, y_train)
Evaluate
score = model.score(X_test, y_test) print(f”Model R² score: {score:.3f}“)
Explore Our Content
- Mathematics - Linear algebra, calculus, statistics, and mathematical foundations
- Machine Learning - Algorithms, models, and practical implementations
- Python - Programming tutorials and data science with Python
- About - Learn more about OliveML and our mission
*Start your journey in machine learning with structured, academic-quality tutorials designed for learners and researchers.*L”
OliveML 🧠
Your comprehensive guide to machine learning, mathematics, and programming.
Explore Our Content
- Mathematics - Linear algebra, calculus, statistics, and mathematical foundations
- Machine Learning - Algorithms, models, and practical implementations
- Python - Programming tutorials and data science with Python
- About - Learn more about OliveML and our mission
x: is the length y: is with z: is the height of the sidebar printedOn: is the paper size that will insert in the printer and one of these two (B5, A5) as an options. here is what i am planning:
1- we have search files form if i put and isbn, lets lookup in these 5 apis:
- Bookshare API
- Open Library
- Google Books API
- Internet Archive API
- ISBNdb API why these five? because we may not found the results in just one. The results will contain: title, author, and image (for showing), all results are displayed inline. under each each result there is an add button.
2- If we click on the add button there, a modal will pop up with these fields (x, y, z, edition, published year, printedOn options:(B5, A5)) we have two buttons “add to side bar” and “create cover”
3- Manipulation of sidebar: we have a dedicated file for storing the information of the side bar (sidebars.js), later we will use them, save as this [x, z, “book title”, “authors”, “edition(we just input number and it append the “e”example:“4e”)”, published year], the “add to side bar” button will add new record to this array.(it saved in the file)
4- Printing the sidebar: print on A4 pages after i finished the search and filled the array with all books. we have Sidebar.html i open it all the save books information will be displayed. ‘metrics in centimeters’. make the constants for parameter bellow, not hardcoded. the title will take 50% of the x, authors 35%, edition %5, published year 10% , after some little padding. the text will be dynamic resizing based on the z, the space between lines 1.2 . examples: long title and small z the title will fit and break the lines, big z and big title will be big font. the displayed is center. on the all corner of the records there is signes for later cutting there is a download pdf, the pdf is A4, all dimensions must be stay the same. after printing i will cuts these strips and clue them.
5- The cover pager: if we click on “create cover” it will create a pdf:
- the images dimension take from x, y (why? sometimes the book dimension is smaller than the page size). start from top left.
- the pdf page size is what we have selected from options (b5,A5)
- the name of the created pdf is the book title.
0.1.1.2 Google Books
Title: Schaum’s Outline of Discrete Mathematics, Fourth Edition
Authors: Seymour Lipschutz, Marc Lipson
Year: 2021-11-30