Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

foml-toolkit

Latest version: v0.2.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: janakchauhan26
1 Versions

Scan summary

foml-toolkit was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.2.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

foml-toolkit

All FOML lab code (Labs 1-14) in one library. Type a topic name and get the code.

import foml_toolkit as ft      # or:  from foml_toolkit import *

ft.run("pca")             # prints ALL PCA code (manual, sklearn, faces, your own images)
ft.run("kmeans")          # K-Means (Lab 11)
ft.run("lda")             # LDA (Lab 10)
ft.run("lab9")            # everything from Lab 9
ft.run(ft.pca)            # also works without quotes:  run(pca)  after  from foml_toolkit import *
ft.run("kmeans", execute=True)   # print the code AND run it
ft.topics()               # list every topic
ft.search("silhouette")   # find a topic by keyword
ft.show_all()             # print every code in the library
help(ft)                  # opens the full index + ALL code in Python's help viewer
Topic name Lab What
linalg, broadcasting 1 solve/det/singular systems, NumPy speed, broadcasting, shapes
gd_simple, gd_two_var 2 gradient descent (1 and 2 features), SGDRegressor
gd_matrix 3 matrix gradient descent
logistic_gd 4 logistic regression from scratch
nn_forward 5 forward propagation, 2- and 3-layer
nn_scratch 6 full neural network, backprop, training
keras_nn 7 TensorFlow/Keras classification + regression
pca_manual, pca_sklearn 8 PCA by hand and with sklearn (Iris)
pca_faces, pca_images 9 image PCA (Olivetti faces, your own pictures)
lda 10 Linear Discriminant Analysis
kmeans 11 K-Means
hierarchical 12 agglomerative clustering, dendrogram, silhouette
concrete_regression 14 concrete strength, 9 models + GridSearchCV

Groups: pca, gd, nn, cluster, logistic, linear_regression, numpy_basics.

Some snippets need extras: pip install "foml-toolkit[regression,cv,deep]" (regression = ucimlrepo+statsmodels, cv = opencv for pca_images, deep = tensorflow for keras_nn).

Small bugs in the original notebooks are fixed and marked with # NOTE: comments in the code.

The clustering and regression labs are also real, importable functions (ft.run_kmeans, ft.compare_linkages, ft.evaluate_models, ... see below).

Install

pip install -e .                 # from the project folder (private / editable)
pip install -e ".[regression]"   # also installs ucimlrepo + statsmodels (Lab 14)
# or straight from GitHub:
pip install "foml-toolkit[regression] @ git+https://github.com/YOUR_USERNAME/foml-toolkit.git"

Quick examples

import foml_toolkit as ft

# Lab 11 - K-Means on Wine
X, y = ft.load_wine_df()
model, Xs = ft.run_kmeans(X, n_clusters=3, scale=True)
print(model.labels_, model.cluster_centers_)
ft.plot_clusters_2d(X, model.labels_, x_index=0, y_index=9,
                    xlabel="Alcohol", ylabel="Color Intensity")

# Lab 12 - Hierarchical clustering on Iris
X, y = ft.load_iris_df()
Xs, _ = ft.scale_features(X)
ft.plot_dendrogram(Xs)
print(ft.compare_linkages(Xs))
_, labels = ft.run_agglomerative(Xs, 3, "ward")
print(ft.cluster_vs_actual(y, labels))

# Lab 14 - Concrete strength
from sklearn.model_selection import train_test_split
import pandas as pd
df = ft.load_concrete()
X, y = ft.clean_data(df)
Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.2, random_state=42)
sets = ft.select_feature_sets(Xtr, Xte)

results, models = [], {}
for name, (a, b) in sets.items():
    r, m = ft.evaluate_models(a, b, ytr, yte, name)   # slow: full grids
    results.append(r); models[name] = m
results_all = pd.concat(results, ignore_index=True)

model, fs, name, row = ft.select_best_model(results_all, models)
mix = {"Cement": [350], "Slag": [80], "Fly_Ash": [50], "Water": [180],
       "Superplasticizer": [8], "Coarse_Aggregate": [1000],
       "Fine_Aggregate": [750], "Age": [28]}
print(ft.predict_new_mix(model, fs, mix), "MPa")

Develop

pip install -e ".[regression,dev]"
pytest

Publish

python -m build
twine upload --repository testpypi dist/*   # try first
twine upload dist/*                          # real PyPI

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases foml-toolkit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229