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
Start your journey in machine learning with structured, academic-quality tutorials designed for learners and researchers.
TheĀ š-adic distanceĀ is a way of measuring how close two numbers are, but itās very different from the usual (Euclidean) distance. It plays a key role in number theory, algebraic geometry, and p-adic analysis. Hereās a breakdown:
0.1.1 š¢ What is theĀ š-adic distance?
TheĀ š-adic distanceĀ comes from the idea of theĀ š-adic norm, which is based on a prime numberĀ š.
0.1.1.1 1.Ā š-adic valuation:
For a nonzero rational numberĀ , write it as:
where:
in our home page (/) we show the menu and the last post, lets change to:
- make just list all main menu in column boxes, inside them list all menus, under each menu the post titile, of cours if i click will take me to that post.
- boxes have head (with name of main menu)
- the boxes will 5 in big screen to 1 in phone screen
Books SideBar and Covers:
I have printed some books with plain coversāonly white. I want to print covers on normal page and clue them, also i want to print the side bar information books separately.
and because the page dimension of the printed books are differs so we need extra manipulation.
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