Giordon Stark

Results 293 comments of Giordon Stark

In the meantime as this discussion didn't seem to go anywhere -- I went and created a `pylibmagic` package that should provide the appropriate libraries as needed for most mac/linux...

~Have you been able to figure this out? I ran into this situation.~ Here's my hack for now (in testing setup): ``` with betamax.Betamax(session).use_cassette('test_cache.test_cache_component'): session.mount(session.prefix_url, session.adapters.get('https://', None).old_adapters[session.prefix_url]) response = session.get(...)...

Note that i found out `betamax` never calls `build_response` so you never end up hitting `cachecontrol` from that. Which is somewhat frustrating.

this is roughly how close I got ``` def mock_factory(betamax_send): def wrap_betamax_send(self, request, **kwargs): resp = betamax_send(request, **kwargs) return session.adapters.get(client.prefix_url, None).build_response( request, resp ) return wrap_betamax_send with betamax.Betamax(session).use_cassette('test_cache.test_cache_component'): mocker.patch( 'betamax.adapter.BetamaxAdapter.send',...

I've tried two ways of doing this. One is to iterate over the keys and assign (doesn't work), but this version seems to be the only thing that mypy is...

Not a huge fan of `metric` - per se. I wouldn't know what "metric" refers to in this context os easily. One thing we might need to consider is the...

> I'm fine with considering CLs a "modified p-value" > I'd also be fine with options being `pvalues=['p_sb', 'p_b','CLs'']` where p is used for the normal p-values and CLs is...

> The JSON structure from which the model is constructed is essentially a collection of array data. If literally read from JSON, it is static data, however that array data...

What benefit do you get from a differentiable model apart from being able to dynamically substitute in the array values?

> List concatenation by `+` is something I think this PR was meant to factor out? (doesn't extend to tensors) should be fixed now. I also checked validity of results...