Giter Club home page Giter Club logo

oreum_core's People

Contributors

dependabot[bot] avatar jonsedar avatar

Stargazers

 avatar

Watchers

 avatar

oreum_core's Issues

modify classic_mod.tplx to adjust images properly

nbconvert 5.6.1

Regular latex template has images too large:

\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))}

I want to override using classic_mod.tplx, something like

((*- block figure -*))
    ((( super() )))
    %\renewcommand{\adjustimage}{max size={0.5\linewidth}{0.5\paperheight}}{((( filename )))}
((*- endblock figure -*))

but nothing I try works. Instead have manually hacked

/Users/jon/opt/anaconda3/envs/freberg_trk/lib/python3.8/site-packages/nbconvert/templates/latex/document_contents.tplx

with line:

\adjustimage{max size={0.9\linewidth}{0.3\paperheight}}{((( filename )))}

which is poor form!

add zero-inflated dist invcdf

useful for e.g. freq defined as claims / $exposure which is zero-inflated

consider zero-inflated poison / neg-binomial, but these are discrete and freq defined over $exposure is continuous, so prefer zero inflated something else... perhaps Gamma:

e.g.

see also:

Create 2-sided sample comparison between PPC of pred(s) vs training

Create calc_2_sample_delta_prop

Calculate 2-side sample delta difference between arrays row-wise so that we can make a statement about the difference between a test array a reference array how different arr is from arr_ref

    Basic algo
    ---------- 

    for each row i in arr:
        for each row j in arr_ref:
            do: d = arr[i] - arr_ref[j]
            do: q = quantiles[0.03, 0.97](d)
            do: b_i = q > 0
            if: sum(b_i) == 2:
                we state "94% of arr[i] > arr_ref[j], substantially larger"
            elif: sum(b_i) == 1:
                we state "not different"                
            else (sum(b_i) == 0):                
                we state "94% of arr[i] < arr_ref[j], substantially smaller"                    
        do: prop = unique_count(b) / len(b)

Then we can state "prop arr[i] larger, same, smaller than arr_ref"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.