This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pattinson@MacBook-Pro-82 ~/r/MapDeduce (master)> python (limix) | |
Python 3.8.15 (default, Nov 24 2022, 09:04:07) | |
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import matplotlib.pyplot as plt | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/Users/pattinson/opt/anaconda3/envs/limix/lib/python3.8/site-packages/matplotlib/pyplot.py", line 32, in <module> | |
import matplotlib.colorbar | |
File "/Users/pattinson/opt/anaconda3/envs/limix/lib/python3.8/site-packages/matplotlib/colorbar.py", line 32, in <module> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pymc as pm | |
import numpy as np | |
import arviz as az | |
import matplotlib.pyplot as plt | |
for module in pm, np, az: | |
print(f"{module.__name__} {module.__version__}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR (aesara.graph.rewriting.basic): Rewrite failure due to: save_mem_new_scan | |
ERROR (aesara.graph.rewriting.basic): node: for{cpu,scan_fn}(Shape_i{0}.0, Elemwise{Cast{int8}}.0, IncSubtensor{Set;:int64:}.0) | |
ERROR (aesara.graph.rewriting.basic): TRACEBACK: | |
ERROR (aesara.graph.rewriting.basic): Traceback (most recent call last): | |
File "/Users/pattinson/.virtualenvs/mfsera-env/lib/python3.10/site-packages/aesara/graph/rewriting/basic.py", line 1933, in process_node | |
replacements = node_rewriter.transform(fgraph, node) | |
File "/Users/pattinson/.virtualenvs/mfsera-env/lib/python3.10/site-packages/aesara/graph/rewriting/basic.py", line 1092, in transform | |
return self.fn(fgraph, node) | |
File "/Users/pattinson/.virtualenvs/mfsera-env/lib/python3.10/site-packages/aesara/scan/rewriting.py", line 1445, in save_mem_new_scan | |
nw_input = expand_empty(_nw_input, tmp_idx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
NotImplementedError Traceback (most recent call last) | |
File ~/.virtualenvs/mfsera-env/lib/python3.10/site-packages/aesara/link/basic.py:111, in Container.__set__(self, value) | |
109 try: | |
110 # Use in-place filtering when/if possible | |
--> 111 self.storage[0] = self.type.filter_inplace( | |
112 value, self.storage[0], **kwargs | |
113 ) | |
114 except NotImplementedError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"\UF729" = "moveToBeginningOfLine:"; /* Home */ | |
"\UF72B" = "moveToEndOfLine:"; /* End */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ | |
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */ | |
"@\UF729" = "moveToBeginningOfDocument:"; /* Command + Home */ | |
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */ | |
"@\UF72B" = "moveToEndOfDocument:"; /* Command + End */ | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python3 | |
def attendance(price: int): | |
"""Number of people that will attend for a given price.""" | |
formula = 120 - ((price - 5) / 0.1) * 15 | |
return max((formula, 0)) | |
def cost_of_performance(n_people: int) -> float: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fish function for converting jupyter notebooks to html with and without code cells | |
function jnc | |
for file in $argv | |
set root (basename "$file" .ipynb) | |
jupyter nbconvert --to html "$file" | |
jupyter nbconvert --to html --TemplateExporter.exclude_input=True "$file" --output "$root"-nocode.html | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(Racmacs) | |
library(progress) | |
# Make a map with 1000 optimisations | |
n_optim <- 1000 | |
titers <- read.titerTable("hi.csv") | |
map <- make.acmap(titer_table = titers, number_of_dimensions = 2, number_of_optimizations = n_optim) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
import random | |
from typing import Generator, Iterable | |
def extend_loop(boxes: tuple[int, ...], loop: list[int], pointer: int) -> tuple[int, ...]: | |
""" |