You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Miguel-Fuentes has requested that we make models from the model collections retrievable and usable by Python.
Currently the collections store the models as serialized R objects (.Rds files) and therefore are only readable by R.
Two possible solutions:
Keep models as .Rds. To use in Python you'd have to:
Over time things have been added to the file so older files may differ in various ways.
Pros and cons of switching to hdf5's files for collections:
Pro
Allows downloading and using the fitted model directly in python (or an other non-R language).
Open format.
Con
.Rds is an exact and complete representation of the R object.
Exporting and importing to an hdf5 isn't perfect and and it's hard to verify that no data is lost or corrupted during the process. Thus using hdf5's creates a little bit of a maintenance hassle. For instance I have no idea if a model with transitions (add_transitions()) will export and re-import properly.
@Miguel-Fuentes has requested that we make models from the model collections retrievable and usable by Python.
Currently the collections store the models as serialized R objects (.Rds files) and therefore are only readable by R.
Two possible solutions:
load_model()
export_birdflow()
export_birdflow()
andimport_birdflow()
now work with fully fit, imported and re-exported models.hdf5 BirdFlow Model file states
There are several states of an
hdf5
file that contains a BirdFlow model.preprocess_species()
relative to a fitted and imported model these:dates
component.distances
component with great circle distances.import_birdflow()
:Over time things have been added to the file so older files may differ in various ways.
Pros and cons of switching to hdf5's files for collections:
Pro
Con
add_transitions()
) will export and re-import properly.rhdf5
package. This eliminates one of the benefits of breaking up the package.The text was updated successfully, but these errors were encountered: