Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar
💭
If I have seen further it is only by standing on the shoulders of giants. Newton

Adrian Statescu thinkphp

💭
If I have seen further it is only by standing on the shoulders of giants. Newton
View GitHub Profile
@thinkphp
thinkphp / grafic_matrice_confuzie.py
Created January 18, 2026 11:22
matrice confuzie seaborn
fig,axes = plt.subplots(1,2,figsize=(14,5))
//matricea de confuzie - antrenare
sns.heatmap(cm_train, annot = True, fmt='d', cmap='Blues', xticklabes=['Fara simptome','IC usoara', 'IC severa'],
yticklabes=['Fara simptome','IC usoara', 'IC severa'],
ax = axes[0].set_title(f"Matricea de confuzie - Antrnare / acuratete: {train_accuracy:.2%}, fontsize=12, fontweight='bold")
axes[0].set_ylabel('Etichete True',fontsize=11)
axes[0].set_xlabel('Eticheta predictie',fontsize=11))
@thinkphp
thinkphp / T2.py
Created January 18, 2026 09:16
T2
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
#algoritmul de clusterizare: grupeaza datele in K clustere
# cum se incarca o imagine?
img = plt.imread('T2.jpeg')
#citeste imaginea si o stocheaza ca array NumPy (matrice de pixeli)
@thinkphp
thinkphp / IRIS.py
Created January 12, 2026 08:00
IRIS
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
from sklearn.cluster import KMeans
#1. incarcarea setului de date Iris
iris = load_iris()
#2. Afisarea descrierii bazei de date
print("="*50)
print(iris.DESCR)
@thinkphp
thinkphp / complete.py
Created January 12, 2026 07:34
cod complet apps
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.linear_model import LinearRegression
from sklearn.cluster import KMeans
from sklearn.preprocessing import PolynomialFeatures
from sklearn.impute import SimpleImputer
from sklearn.pipeline import make_pipeline
from sklearn.metrics import r2_score
@thinkphp
thinkphp / project-simon.md
Last active October 11, 2025 17:57
project-simon.md

Tackle Hire Management System

A management system for renting fishing and camping equipment. The application allows customer registration, order management, and earnings report generation.


Table of Contents

@thinkphp
thinkphp / task1.py
Created September 30, 2025 13:05
task1.py
# Task 1 - Main Menu for Tackle Hire System
# Date: September 30, 2025
def display_menu():
"""
Function to display the main menu options
"""
print("\n" + "="*50)
print("TACKLE HIRE SYSTEM - MAIN MENU")
print("="*50)
@thinkphp
thinkphp / equipment_prices.py
Last active September 30, 2025 13:14
equipment_prices.py
equipment_prices = {
"1": {"name": "Day chairs", "price": 15.00},
"2": {"name": "Bed chairs", "price": 25.00},
"3": {"name": "Bite Alarm (set of 3)", "price": 20.00},
"4": {"name": "Bite Alarm (single)", "price": 5.00},
"5": {"name": "Bait Boat", "price": 60.00},
"6": {"name": "Camping tent", "price": 20.00},
"7": {"name": "Sleeping bag", "price": 20.00},
"8": {"name": "Rods (3lb TC)", "price": 10.00},
"9": {"name": "Rods (Bait runners)", "price": 5.00},
@thinkphp
thinkphp / refund.md
Last active September 8, 2025 16:04
refund.md

Refund Workflow for Roger Art Gallery

1. Client request

The client calls and says:

"I ordered 5 paintings, I want to return 3."

2. Identify the order

  • Ask for the order number (order_id) or the email address used for the purchase.
@thinkphp
thinkphp / privacy.md
Created September 4, 2025 07:17
Privacy-Policy

Privacy Policy

Roger Art Gallery
Last Updated: September 2025

1. Introduction

Roger Art Gallery ("we," "our," or "us") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and make purchases from our online art gallery.

2. Information We Collect

@thinkphp
thinkphp / Terms & Conditions.md
Last active September 4, 2025 07:18
Terms & Conditions Art Gallery

Terms & Conditions

Roger Art Gallery
Last Updated: September 2025

1. Acceptance of Terms

By accessing and using the Roger Art Gallery website and purchasing our artworks, you accept and agree to be bound by the terms and provision of this agreement. These Terms & Conditions govern your use of our website and the purchase of artwork from Roger Art Gallery.

2. Artwork Description and Accuracy