Skip to content

Instantly share code, notes, and snippets.

View EvanMisshula's full-sized avatar

Evan Misshula EvanMisshula

View GitHub Profile
@EvanMisshula
EvanMisshula / answer_unscrambled.md
Created June 10, 2025 20:40
unscramble breakout key

Answer Key: Linear Regression with the California Housing Dataset

1. Which features are most strongly correlated with the target variable?

Using the correlation matrix and heatmap, we find that:

  • 'MedInc' (median income) has the strongest positive correlation with the target variable ('MedHouseVal').
  • 'AveRooms' and 'HouseAge' have moderate correlations.
  • 'AveOccup' and 'Population' are less correlated.

2. How does median income affect median house value?

@EvanMisshula
EvanMisshula / instructions.md
Created June 9, 2025 12:21
breakout instruction answer decode

TA Instructions: Viewing the Answer Key for the Wine EDA Exercise The student-facing answer key has been scrambled using a reversible encoding (ROT13). Here's how you, as a TA, can decode and read it. :mag_right: Step-by-Step

  1. Locate the scrambled file Navigate to the following path in your project directory: breakout/wine_eda_answer_key.md
  2. Open a Python shell or script Use any of the following: A Jupyter notebook cell The Python REPL (python3 in your terminal)
@EvanMisshula
EvanMisshula / cleanDF10jj.json
Created January 20, 2022 03:54
From Oct 1, 2021 Under Custody
This file has been truncated, but you can view the full file.
[{"lastName":"CARTER","firstName":"CHEYENNE","sex":"M","dob":19740512,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000106,"age":47.4,"timeServed":21.7,"modEthRaceF":"non-HispanicBlack","crimeCounty":"BRONX","crimeRegion":"NYC","downstateResident":"downstate","nycResident":"NYC","homeRegion":"NYC","prisonRegion":"Hudson Valley","prison":"wallkill","prisonSecLevel":"med","prisonLong":41.6281,"prisonLat":-74.1633,"timeServedBinned":"21-25","ageBinned":"35-49","modEthRace":"NH-Black"},{"lastName":"HARVALL","firstName":"RAHIM","sex":"M","dob":19740224,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":47.6,"timeServed":21.7,"modEthRaceF":"non-HispanicBlack","crimeCounty":"KINGS","crimeRegion":"NYC","downstateResident":"downstate","nycResident":"NYC","homeRegion":"NYC","prisonRegion":"Hudson Valley","prison":"sing sing","prisonSecLevel":"max","prisonLong":41.1517,"prisonLat":-73.8689,"timeServedBinned":"21-25","ageBinned":"35-49","modEthRace":"NH-Black"},{"la
This file has been truncated, but you can view the full file.
[{"lastName":"CARTER","firstName":"CHEYENNE","sex":"M","dob":19740512,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000106,"age":46.9,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","crimeCounty":"BRONX","crimeRegion":"NYC","downstateResident":"downstate","nycResident":"NYC","homeRegion":"NYC","prisonRegion":"Hudson Valley","prison":"fishkill","prisonSecLevel":"med","prisonLong":41.5227777777778,"prisonLat":-73.95,"timeServedBinned":"21-25","ageBinned":"35-49","modEthRace":"NH-Black"},{"lastName":"HARVALL","firstName":"RAHIM","sex":"M","dob":19740224,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":47.1,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","crimeCounty":"KINGS","crimeRegion":"NYC","downstateResident":"downstate","nycResident":"NYC","homeRegion":"NYC","prisonRegion":"Hudson Valley","prison":"sing sing","prisonSecLevel":"max","prisonLong":41.1516666666667,"prisonLat":-73.8688888888889,"timeServedBinned":"21-25","ageBinned":"35-49","mod
This file has been truncated, but you can view the full file.
[{"lastName":"CARTER","firstName":"CHEYENNE","sex":"M","dob":19740512,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000106,"age":46.8,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"HARVALL","firstName":"RAHIM","sex":"M","dob":19740224,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":47,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"GAUSE","firstName":"DAVID","sex":"M","dob":19600801,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":60.6,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"GARCIA","firstName":"JOHANN","sex":"M","dob":19790130,"ethnicGroup":"Hispanic","race":"Other","originalReceptionDate":20000107,"age":42.1,"timeServed":21.2,"modEthRaceF":"HispanicOther","modEthRace":"Hispanic"},{"lastName":"SNYDER","firstName":"CARL","sex":"M","dob":19761212,"ethnicGroup":"non-Hispanic","race":"Bla
app@ted:~/reflex/servant-snap$ nix-build --attr servant-snap release.nix
/etc/host.conf: line 4: bad command `nospoof on'
these derivations will be built:
/nix/store/g9nzcvi5d8g829za30k4jx7602p5h8x8-servant-snap-0.8.1.0.drv
building '/nix/store/g9nzcvi5d8g829za30k4jx7602p5h8x8-servant-snap-0.8.1.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/3v8p0pvcplr3bfvrnh4fyqrqk2ddyl6f-ghc-8.2.2.
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/jxfbrgafj0n8mr2nq6n6jlzl3f25zv3v-servant-snap
@EvanMisshula
EvanMisshula / default-goundhog-ghcjs.nix
Created April 17, 2019 02:09
Ali...I hope you don't regret being so generous with your time....
{ mkDerivation, base, stdenv, template-haskell }:
mkDerivation {
pname = "groundhog-ghcjs";
version = "0.1.0.0";
src = ./.;
libraryHaskellDepends = [ base template-haskell ];
jailbreak = true;
doCheck = false;
homepage = "http://github.com/mightybyte/groundhog-ghcjs";
description = "Groundhog GHCJS compatibility";
@EvanMisshula
EvanMisshula / default.nix
Created April 7, 2019 15:57
my problem building servant snap
{ mkDerivation, aeson, attoparsec, base, base64-bytestring
, bytestring, case-insensitive, containers, digestive-functors
, directory, either, errors, exceptions, filepath, heist, hspec
, hspec-core, hspec-snap, http-api-data, http-client, http-media
, http-types, HUnit, io-streams, lens, map-syntax, mmorph, mtl
, network, network-uri, parsec, process, QuickCheck, servant
, servant-client, snap, snap-core, snap-cors, snap-server, stdenv
, string-conversions, temporary, text, time, transformers, word8
}:
mkDerivation {
@EvanMisshula
EvanMisshula / default.nix
Created March 19, 2019 13:27
default.nix for soap project.....
{ reflex-platform ? import ./reflex-platform {} }:
reflex-platform.project ({ pkgs, ... }: {
packages = {
common = ./common;
backend = ./backend;
frontend = ./frontend;
};
shells = {
@EvanMisshula
EvanMisshula / bash output
Created March 19, 2019 02:22
Linux.hsc:25:10: fatal error: 'sys/inotify.h' file not found
bash-3.2$ nix-build -A all
building '/nix/store/48w16xvg9hxbcs6453a25xq9p6gz49js-cabal2nix-backend.drv'...
installing
*** found package.yaml. Using hpack...
trace: WARNING: ignoring dependency on doctest
these derivations will be built:
/nix/store/dj410wnv0mwya71c1a853455gix22pmj-temporary-1.3.drv
/nix/store/hza6q5xr08pwm165zlmi7fhxjg6m6f3l-mockery-0.3.5.drv
/nix/store/wnjjwywa8k793jr0gi9hr7bg7swnk0qc-unliftio-core-0.1.2.0.drv