Downloads · 30 days
0
DarkNeuron-AI/darkneuron-hydrasense-v1
darkneuron-hydrasense-v1 is a tabular classification model from DarkNeuron-AI. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as mit.
A lightweight Random Forest + StandardScaler based water potability prediction model developed by DarkNeuronAI. It classifies water as Potable (1) or Not Potable (0) based on chemical and physical features — ideal for…
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2025
Repo size
7.3 MB
Likes
1
Public
Click a slice to open those files.
.pkl7.3 MB · 100%
From the Hugging Face model README
A lightweight Random Forest + StandardScaler based water potability prediction model developed by DarkNeuronAI.
It classifies water as Potable (1) or Not Potable (0) based on chemical and physical features — ideal for simple tabular classification tasks.
water_potability_model.pkl → Trained Random Forest pipeline (scaler + model)example_usage.py → Example code to use the modelrequirements.txt → Dependencies listfrom huggingface_hub import hf_hub_download
import joblib
import pandas as pd
# Download and load the trained pipeline
pipeline_path = hf_hub_download("DarkNeuron-AI/darkneuron-hydrasense-v1", "water_potability_model.pkl")
model = joblib.load(pipeline_path)
# Example water sample
sample_data = {
'ph': [7.2],
'Hardness': [180],
'Solids': [15000],
'Chloramines': [8.3],
'Sulfate': [350],
'Conductivity': [450],
'Organic_carbon': [10],
'Trihalomethanes': [70],
'Turbidity': [3]
}
sample_df = pd.DataFrame(sample_data)
# Predict potability
prediction = model.predict(sample_df)
print("Prediction:", "💧 Potable" if prediction[0] == 1 else "⚠️ Not Potable")