Giter VIP home page Giter VIP logo

Comments (5)

DougBurke avatar DougBurke commented on June 13, 2024 1

Just to point out that the "as you know" part is actually wriong!

from sherpa.

anetasie avatar anetasie commented on June 13, 2024

Need to check if this has been fixed in 4.12

from sherpa.

DougBurke avatar DougBurke commented on June 13, 2024

A quick note: most of our functions that allow running multiple datasets have id=None as their default value (e.g. fit, conf, ...) which means that they default to using all datasets by default.

I note that plot_pvalue defaults to id=1, which means that it only uses the default dataset by default. I think it should be changed to id=None to match (and is an easy fix), but if there are difficulties in using with multiple datasets maybe we shouldn't make this change until #112 is resolved.

from sherpa.

DougBurke avatar DougBurke commented on June 13, 2024

I should add, I have no idea about how plot_pvalue is meant to be used, what its arguments are, and what happens for multiple datasets. So I am unlikely to work on this until someone can provide guidance on these issues.

from sherpa.

anetasie avatar anetasie commented on June 13, 2024

@DougBurke as you know this function performs simulations assuming a null model and fits the simulated data with a null model and a more complex model to calculate the likelihood ratio between the two at each simulation step. The summary is printed to the screen and the plot shows the histogram of the likelihood ratio from N simulations and the vertical line showing the observed ratio. Also, the simulation results can be obtained with get_pvalue_results and get_pvalue_plot.

The simulations make sense for single data set, or simultaneous fit to multiple data set, so the null and the complex models are well defined. In the case of fitting different data sets with different models plot_pvalue as defined would only make sense for running simulation for each data set separately, which is what one could do with the current implementation.

from sherpa.

Related Issues (20)

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.