Skip to content

Instantly share code, notes, and snippets.

@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}}}}}
@simplymathematics
simplymathematics / LICENSE
Last active September 21, 2022 18:44
basic watcher script in python
Copyright 2022 @simplymathematics
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O
@simplymathematics
simplymathematics / data.py
Last active September 21, 2022 14:07
deckard data yaml
import collections
from sklearn.datasets import make_blobs, make_moons, make_classification, load_boston, load_iris, load_diabetes, load_wine
from sklearn.model_selection import train_test_split
import numpy as np
import pandas as pd
from pathlib import Path
generated = {
"blobs": make_blobs,
"moons": make_moons,
"classification": make_classification,
@simplymathematics
simplymathematics / reports.csv
Created September 20, 2022 20:02
tikhonov_data.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
link,f1,accuracy,precision,recall,auc,scale,epochs,learning_rate,input_noise,output_noise,type,predictions
"<a href=""92f5c37f-2c7b-4e50-af36-11e4cbf24faa/report.html"">Summary</a>",0.0,0.515,0.0,0.0,,0.0001,10000,10.0,0,0,LinearTikhonov,"<a href=""reports/92f5c37f-2c7b-4e50-af36-11e4cbf24faa/predictions.json"">Predictions</a>"
"<a href=""5d87010c-6002-4dc6-9c42-004d9b865bca/report.html"">Summary</a>",1.0,1.0,1.0,1.0,1.0,1e-05,10000,1e-06,0,0,LinearTikhonov,"<a href=""reports/5d87010c-6002-4dc6-9c42-004d9b865bca/predictions.json"">Predictions</a>"
"<a href=""1fd62d3f-3ffa-4260-a4c3-1869a315fd9f/report.html"">Summary</a>",0.0,0.515,0.0,0.0,,10.0,10000,0.0031622777,0,0,LinearTikhonov,"<a href=""reports/1fd62d3f-3ffa-4260-a4c3-1869a315fd9f/predictions.json"">Predictions</a>"
"<a href=""d38f22d7-d07a-4c26-b79c-4aef6592fbd0/report.html"">Summary</a>",1.0,1.0,1.0,1.0,1.0,1e-06,10000,1e-06,0,0,LinearTikhonov,"<a href=""reports/d38f22d7-d07a-4c26-b79c-4aef6592fbd0/predictions.json"">Predictions</a>"
"<a href=""c77bac
@simplymathematics
simplymathematics / spec.json
Created April 7, 2022 08:17
Vega-Lite spec from Thu Apr 07 2022
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/seattle-weather.csv"},
"mark": "bar",
"encoding": {
"x": {"timeUnit": "month", "field": "date", "type": "ordinal"},
"y": {"aggregate": "average", "field": "precipitation"}
}
}
import base64
import json
import os
def export_images(notebook_filepath,
output_directory):
notebook_image_exporter = NotebookImageExporter(notebook_filepath,
output_directory)