Skip to content

Instantly share code, notes, and snippets.

{"": {"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)

Keybase proof

I hereby claim:

  • I am simplymathematics on github.
  • I am simplymathematic (https://keybase.io/simplymathematic) on keybase.
  • I have a public key ASDdXBYOOtb-8BaMAfRlTCdDW9vR8at5wdMs6xGGq3HhCwo

To claim this, I am signing this object:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install wget
wget
This file has been truncated, but you can view the full file.
"EXTERNALTICKETNUMBER";"ACCOUNT";"TICKETDATE";"ACTUALSTARTDATETIME";"ACTUALFINISHDATETIME";"TICKETCLASS";"HOSTNAME";"APPORSYSID";"OSNAME";"OSCLASS";"MACHINECLASS";"ARCHITECTURE";"TAD";"PROCTYPE";"PHYSICALMEMORY";"OsType";"MachineType";"Vendor";"ResolutionClass";"MachineTypeSRM";"CPU_PCT";"MEM_PCT";"N_CPU";"MEM_GB";"N_VMS";"CAPACITY_GB";"USED_GB";"USED_PCT";"FREE_PCT";"N_DISKS";"TOT_KPPS";"TOT_KBPS";"N_OFF";"MonitoringStartDate"
"3684ef4cdd667417c443dbb60a3c6966";"E";"2012-07-01 01:09:00";"2012-07-01 01:21:00";"2012-07-01 02:45:00";"Crash";"d5e6b5d344903dd1561522e75631ab76";"d477ed4917e27d9a48172b195f764cb2";"Microsoft Windows";"Microsoft Windows 2003";"VIRTUAL_MACHINE";NULL;"0000-00-00";"Intel(R) Xeon(R) CPU X5670 @ 2.93GHz";"3839";"Windows";"VM";NULL;"Reboot";"VM";NULL;NULL;NULL;NULL;NULL;"85.33718";"20.03126";"23.473074690304976";"76.52694288702767";"3";"155.24776";"52.75020000000001";"2";"2011-01-31"
"1beada3ebe9217583e8028acf668c985";"E";"2012-07-01 02:59:00";"2012-07-01 03:00:00";"2012-07-01 0