Code Monkey home page Code Monkey logo

Comments (7)

caglorithm avatar caglorithm commented on August 22, 2024 1

Imagine:

model = Model()
model.run()
model.results # an xarray

circuit = Circuit(*models)
circuit.run()
circuit.results # an xarray

All the same syntax for different levels!

from neurolib.

jajcayn avatar jajcayn commented on August 22, 2024

Definitely tabulated values, for now, I'd use xarray as you suggest. the integration could look like

circuit = Circuit(...)
circuit.run(...)
print(circuit.results)
# will print results in a xarray.DataField
circuit.save_results("results.hdf")  # or .nc, or .pkl or .csv if only 2D

from neurolib.

jajcayn avatar jajcayn commented on August 22, 2024

actually, the model results are always 2D (number of state vector variables x time) so pandas is enough there, only exploration results would need multi-d representation, so xarray

from neurolib.

caglorithm avatar caglorithm commented on August 22, 2024

I was actually tryig to avoid using pandas because I'm not sure if it is fit for timeseries data (I might be wrong). I'm rather used to process results with it. xarr however seems to be perfect for this job, especially if you can extend it many more dimensions in (state variables x time x parameters) space. It seems kinda straightforward to save explorations in it or to dump data into an xarr from a pypet trajectory.

from neurolib.

jajcayn avatar jajcayn commented on August 22, 2024

yup, agreed, we need not use pandas and use xarray instead for greater compatibility of model results vs. exploration results

from neurolib.

jajcayn avatar jajcayn commented on August 22, 2024

in 6 months we are there :)

from neurolib.

caglorithm avatar caglorithm commented on August 22, 2024

Single simulations save their results into a .results object, can be accessed via keys a la model['x'] or attributes, a la model.x. now and also converted to an xr DataArray via model.xr().

Exploration results are all saved in hdf files and are also accessible via exploration.results and a summary accessible as a pandas DataFrame via exploration.dfResults.

from neurolib.

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.