Skip to content

Instantly share code, notes, and snippets.

View OrenBochman's full-sized avatar
🏠
Working from home

Oren Bochman OrenBochman

🏠
Working from home
  • WMF
  • 16:27 (UTC +02:00)
View GitHub Profile

Thinking Electrons: Modelling People

Thinking electrons: modelling people

| "Imagine how hard physics would be if electrons could think." | --- Murray Gell-Mann (1969 Nobel Laureate in Physics)

People are more complicated than electrons because they tend to consider their self interests before acting. This makes people more difficult to model. Humans are modelled according to three basic frameworks:

  1. rational actor models: These models state that people have goals and optimize their goals.
@OrenBochman
OrenBochman / w05.md
Last active January 27, 2024 12:27
w05

Thinking Electrons: Modelling People

Thinking electrons: modelling people

| "Imagine how hard physics would be if electrons could think." | --- Murray Gell-Mann (1969 Nobel Laureate in Physics)

People are more complicated than electrons because they tend to consider their self interests before acting. This makes people more difficult to model. Humans are modelled according to three basic frameworks:

  1. rational actor models: These models state that people have goals and optimize their goals.
@OrenBochman
OrenBochman / !readme.md
Last active November 5, 2020 11:15
ml auxiliary code for (layers, callbacks, visualizations)

from callbacks import ClearTrainingOutput, PlotTraining

@OrenBochman
OrenBochman / Calibre_remove_empty_books.sh
Created April 29, 2020 10:24 — forked from EnigmaCurry/Calibre_remove_empty_books.sh
Remove empty books from calibre (books that have no formats available)
calibredb list -f title,author_sort,formats | grep ".*\[\]\W*$" | cut -d " " -f 1 | xargs -iXX calibredb remove XX
Name Miles_per_Gallon Cylinders Displacement Horsepower Weight_in_lbs Acceleration Year Origin
chevrolet chevelle malibu 18 8 307 130 3504 12 70 1
buick skylark 320 15 8 350 165 3693 11.5 70 1
plymouth satellite 18 8 318 150 3436 11 70 1
amc rebel sst 16 8 304 150 3433 12 70 1
ford torino 17 8 302 140 3449 10.5 70 1
ford galaxie 500 15 8 429 198 4341 10 70 1
chevrolet impala 14 8 454 220 4354 9 70 1
plymouth fury iii 14 8 440 215 4312 8.5 70 1
pontiac catalina 14 8 455 225 4425 10 70 1
Continent_Name Continent_Code Country_Name Two_Letter_Country_Code Three_Letter_Country_Code Country_Number
Asia AS Afghanistan, Islamic Republic of AF AFG 4
Europe EU Albania, Republic of AL ALB 8
Antarctica AN Antarctica (the territory South of 60 deg S) AQ ATA 10
Africa AF Algeria, People's Democratic Republic of DZ DZA 12
Oceania OC American Samoa AS ASM 16
Europe EU Andorra, Principality of AD AND 20
Africa AF Angola, Republic of AO AGO 24
North America NA Antigua and Barbuda AG ATG 28
Europe EU Azerbaijan, Republic of AZ AZE 31
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 81 columns, instead of 37 in line 1.
Id,MSSubClass,MSZoning,LotFrontage,LotArea,Street,Alley,LotShape,LandContour,Utilities,LotConfig,LandSlope,Neighborhood,Condition1,Condition2,BldgType,HouseStyle,OverallQual,OverallCond,YearBuilt,YearRemodAdd,RoofStyle,RoofMatl,Exterior1st,Exterior2nd,MasVnrType,MasVnrArea,ExterQual,ExterCond,Foundation,BsmtQual,BsmtCond,BsmtExposure,BsmtFinType1,BsmtFinSF1,BsmtFinType2,BsmtFinSF2,BsmtUnfSF,TotalBsmtSF,Heating,HeatingQC,CentralAir,Electrical,1stFlrSF,2ndFlrSF,LowQualFinSF,GrLivArea,BsmtFullBath,BsmtHalfBath,FullBath,HalfBath,BedroomAbvGr,KitchenAbvGr,KitchenQual,TotRmsAbvGrd,Functional,Fireplaces,FireplaceQu,GarageType,GarageYrBlt,GarageFinish,GarageCars,GarageArea,GarageQual,GarageCond,PavedDrive,WoodDeckSF,OpenPorchSF,EnclosedPorch,3SsnPorch,ScreenPorch,PoolArea,PoolQC,Fence,MiscFeature,MiscVal,MoSold,YrSold,SaleType,SaleCondition,SalePrice
1,60,RL,65,8450,Pave,NA,Reg,Lvl,AllPub,Inside,Gtl,CollgCr,Norm,Norm,1Fam,2Story,7,5,2003,2003,Gable,CompShg,VinylSd,VinylSd,BrkFace,196,Gd,TA,PConc,Gd,TA,No,GLQ,706,Unf,
snippet template "Basic template" b
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[dutch]{babel}
\usepackage{amsmath, amssymb}
\begin{document}
@OrenBochman
OrenBochman / gistp.sh
Created November 1, 2018 10:54 — forked from sddamico/gistp.sh
paste your clipboard to a gist and copy the gist url to the clipboard
gistp() {
if [ -z "$1" ] ; then
echo "Must supply filename for new gist"
exit(1)
else
gisturl=$(pbpaste | gist -f $1)
echo "Copying $gisturl to clipboard"
echo "$gisturl" | pbcopy
fi
}
@OrenBochman
OrenBochman / !!Architecture.md
Last active October 31, 2018 14:46
Android Architecture

Architecture & Testability

  • MVC
  • MVP
  • MVVM
  • MVI
  • VIPER
  • Clean
  • Clean
  • Threaded