Skip to content

Instantly share code, notes, and snippets.

@simplymathematics
simplymathematics / index.html
Last active June 6, 2025 13:59
An example of building models in javascript and plotting them with plotly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Model Visualization</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<h2>Linear SVM Model</h2>
<div id="plot" style="width: 700px; height: 600px;"></div>
@simplymathematics
simplymathematics / kernel.ipynb
Created October 18, 2024 14:32
NCD-Kernelized-Classifier
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simplymathematics
simplymathematics / adjacency.ipynb
Last active October 9, 2024 16:01
Use matrix centrality to find the most central node according to two criteria
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simplymathematics
simplymathematics / animated_oscar_nominated_movies.json
Created August 31, 2024 01:11
animated oscar nominated movies
[
{
"imdb_id": "tt0126029",
"title": "Shrek"
},
{
"imdb_id": "tt0268397",
"title": "Jimmy Neutron: Boy Genius"
},
{
@simplymathematics
simplymathematics / oscar_best_picture_nominees.csv
Last active August 30, 2024 22:54
oscar_best_picture_nominees.csv
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
[
{
"imdb_id": "tt0031210",
"title": "Dark Victory"
},
{
"imdb_id": "tt0031381",
"title": "Gone with the Wind"
},
{
@simplymathematics
simplymathematics / likes.txt
Created February 25, 2024 21:49
youtube likes
https://www.youtube.com/watch?v=FF8y5FdbeyI
https://www.youtube.com/watch?v=I57nIP0vc44
https://www.youtube.com/watch?v=rbm_DBsTUEA
https://www.youtube.com/watch?v=x4-ZK8jpjO0
https://www.youtube.com/watch?v=b1D-gsZYsPI
https://www.youtube.com/watch?v=kyfxGusQPjE
https://www.youtube.com/watch?v=yOtqq3E0JNg
https://www.youtube.com/watch?v=xKt75jUuKJY
https://www.youtube.com/watch?v=JH6il8U3EU0
https://www.youtube.com/watch?v=nC-qw4BkDwI
@simplymathematics
simplymathematics / README.md
Last active February 20, 2024 23:49
binary security datasets

kdd_nsl.csv

Compiled from KDDTrain+.txt and KDDTest+.txt, provided by The Canadian Institute of Cybersecurity Citation:

References: [1] M. Tavallaee, E. Bagheri, W. Lu, and A. Ghorbani, “A Detailed Analysis of the KDD CUP 99 Data Set,” Submitted to Second IEEE Symposium on Computational Intelligence for Security and Defense Applications (CISDA), 2009.

truthseeker.csv

From Features_for_Traditional_ML_Techniques.csv provided by The Canadian Institute of Cybersecurity Citation: > Sajjad Dadkhah, Xichen Zhang, Alexander Weismann, Amir Firouzi, Ali A. Ghorbani, “TruthSeeker: The Largest Social Media Ground-Truth Dataset for Real/Fake Content,” Submitted to: IEEE Transactions on Computational Social Systems.

@simplymathematics
simplymathematics / .devcontainer---devcontainer.json
Last active February 27, 2024 21:15
List of artists I like
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"features": {
"ghcr.io/akhildevelops/devcontainer-features/pip:0": {}
}
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
{"": {"data": {"results/1/scores.json": {"data": {"F1": 0.9880774226, "ACC": 0.9880952381, "PREC": 0.9881051422, "REC": 0.9880952381}}, "results/2/scores_2.json": {"data": {"F1": 0.9880774226, "ACC": 0.9880952381, "PREC": 0.9881051422, "REC": 0.9880952381}}}}}