-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge with master and deploy #393
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get around Azure DevOps issues by following a suggestion by Sean Law: https://twitter.com/seanmylaw/status/1239332444865773568
Signed-off-by: Guillaume Tauzin <[email protected]>
giotto-ai#362) * start plotting for images * Add the image plotting file * Add an imagePlotMixin subclassing the ImagePlot for theimage submodule, add persistenceImage plots * Add plot_persistence_image to the package * Add plotting functionalities to filtrations in the image module and forbetticurves * Preprocessing covered by plots * Add basic plotting functions for different vectorisation methods * Incorporate plotting for diagram representations and images/preprocessing * Change the docstring for ImagePlotterMixin and add fail on 3d images * Correct the samplingsin features, and titles * Small wording fix * Change dosctrings for plot in diagrams/features * Fix typo in variable name * Change plotting of heatkernel to the same as persistenceimage, use samplings * Cast images to floats, so as they can be always plotted * Add a Homology and PointCloud Mixin * Use the new PlotMixins * Add todo in Forgetdimensions, in relation to plotting * Add plotting to point_cloudsrescaling, correctimports * Wording changes * Correct n_values to n_bins and add 's' to n_homologydimensionS * Correct spelling mistakes * Change the name of ...PlotterMixin to ...Plotter * Make SlidingWindowEmbedding a PointCloudPlotter * Fix typoin import * Fix linting * Correct the way the distance matrices are displayed, and add the SlidingWindow.plot method * Change behaviour of transform_plot to return the 0-th sample * Docstring fixes * Create diagrams/representations.py, and migrate amplitude to features.py This change reflects the new documentation structure and the difference now drawn there between feature creation for diagrams (scalars) and vector representations/vectorizations. These changes are mostly invisible to the user. * Remove unused identity function * Rename HomologyPlotter as DiagramPlotter * Add homology_dimensions kwarg to DiagramPlotter, revise docstring * Small docstring fixes * Try adding triggers in the yaml * Remove excessive blank line * Revert "Change behaviour of transform_plot to return the 0-th sample" This reverts commit 2fa0209. * Fix docstring for PlotterMixin * Further docstring refinements in `PlotterMixin` * Remove `DiagramPlotter`, differentiate between implementations of `plot` Also make plot methods static in classes in `gtda.homology` and in ForgetDimensino * Correctly import PlotterMixin * Correct the plotting in the lorentz notebook * Remove PointCloudPlotter and refine plot methods for point clouds * Thorough refactoring of plotting API - Eliminate some top-level functions for diagram representations, leave only betti_curves and betti_surfaces - Remove ImagePlotter mixin and plotting/_plot.py, create top-level plot_heatmap function - Rename plotting/diagrams.py to plotting/diagrams_representations.py - Rename plotting/image.py to plotting/images.py - Rename plotting/homology.py to plotting/persistence_digrams.py - Fix problem with Binarizer coming from now-removed normalize parameter - Refactor notebooks to use plotting API - MIscellaneous small changes elsewhere The philosophy behind the file changes in gtda/plotting is that file names now reflect data structures and do not try to follow the names of subpackages like diagrams, image, etc. * Grammar * Fix default parameter for homology_dimension_ix in HeatKernel * Change plot_diagrams to allow ForgetDimension to work * Allow _subdiagrams to better handle infs of different kind * Add inline comment for future selves * Write check_diagrams docstring and make it convert to float, revert previous changes to _subdiagrams * Pass copy=False to astype in check_diagrams Co-authored-by: Guillaume Tauzin <[email protected]> Co-authored-by: Guillaume Tauzin <[email protected]> Co-authored-by: Umberto Lupo <[email protected]> Co-authored-by: Umberto <[email protected]>
* Update P landscapes * Add distances, inner products and kernels glossary entry * Update after W's comments Signed-off-by: ammedmar <[email protected]> Co-authored-by: ammedmar <[email protected]>
* Add reference for images submodules Signed-off-by: Guillaume Tauzin <[email protected]>
* delete hera repository * Add hera as submodule * Remove unnecessary branch for submodule * Add parameter max_bids_per_round when computing wasserstein * Fix an inconsistency with wasserstein implementation In Wasserstein, by default epsilon_common_ratio is equal 5, and it can be equal 0, which our bindings did not allow * Add test for python bindings of wasserstein Add method to retrieve what wasserstein consider to be infinity as an input * Add test for python bindings of bottleneck * Add fixes done by author after I contact him Signed-off-by: julian <[email protected]>
* Remove code fetching logo as it is now stored in doc/images * Fix logo in examples directory * Partial rewriting of contributing page * Remove instructions for building documentation * Simplify path in Makefile * Remove documentation job in azure-pipelines.yml * Add @wreise to authors in doc/conf.py * Remove paper citation from FAQ * Rename Glossary to Theory Glossary * Linting in images subpackage * Add PlotterMixin to base.rst * Update FAQ * Improve README with pointers to GH pages * Implement @wreise's review suggestions * Fix links to svgs * Remove remaining mentions of plotting.py * Rename basic to tutorials and advanced to examples * Fixes in jupyter notebooks in examples folder * Add plotting in docs * Fixes in glossary * Correct the VBox display * Add TODO instead of empty reference in Cech docstring * Fix references in docstrings * Reintroduce scrollZoom in mapper_quickstart * Improve landing page and move Lewis' blog post to notebooks/tutorials.rst Co-authored-by: Wojciech Reise <[email protected]>
* Add a check_point_clouds fct in utils/validation, and apply it throughout classes in ``homology/simplicial.py`` * Adapt and add tests * Make the output of ImageToPointCloud variable in size, and adjust the tests (modify the expected values) * Add mapper and utils to global __init__ * Revise use of check_array throughout * Linting and code clarity improvements throughout * Fix some incorrect links to GH pages * Revert to trivial slicing in transform_plot method of PlotterMixin, to cover case of list input Co-authored-by: Umberto <[email protected]>
* Bump version to 0.2.0, add release notes * Improve LaTeX rendering in mapper_quickstart.ipynb
* Add @rth to code authors and list of contributors for v0.2.0
* Add twine check to azure-pipelines.yml * Fix formatting and duplicate issues in README.rst
…erage (giotto-ai#384) * Remove images subpackage from code omitted from coverage * Add tests for Filtering class * Add tests in diagrams subpackage, linting - Rename test_features -> test_features_representations - Create parametrized dummy tests for fit_transform_plot method of transformers in representations.py - Improve structure and range of tests in test_preprocessing in a similar way - Create dummy tests of shape for BettiCurve and PersistenceLandscape - Linting and code style changes elsewhere * Add fit_transform_plot test for GraphGeodesicDistance * Add fit_transform_plot tests in gtda.homology * Fix typo in voids_on_the_plane notebook * Add fit_transform_plot tests for images subpackage * Add fit_transform_plot tests for point_clouds subpackage * Add test for SlidingWindow.plot * Linting * Exclude gtda.utils._doc and gtda.utils.intervals from coveragerc * Implement @wreise's suggestions - Rename some test functions - Implement a solution to the automatic tab opening problem, based on setting the default value of plotly.io.renderers in test files * Upload coverage report only from Azure macOS job * Exclude test folders from coverage reports
* Update P landscapes * Add distances, inner products and kernels glossary entry Signed-off-by: ammedmar <[email protected]>
* Update ccache * Update variable used to indicate boost headers location Official answer from boost devs: https://discourse.cmake.org/t/findboost-difference-between-boost-include-dir-and-boost-include-dirs/855 * Add install boost step in Azure CI, which downloads boost Signed-off-by: julian <[email protected]>
…/refactor check_point_clouds and add tests (giotto-ai#386) * Remove boolean mask on infinite values in VietorisRipsPersistence * Refactoring of check_point_clouds - Rename distance_matrix kwarg to distance_matrices - Add checks for square input when distance_matrices is set to True - More comprehensive/friendly error messages and warnings * Increase generality of ripser function when metric == 'precomputed' Sklearn's pairwise_distances is no longer called when metric='precomputed'. This is because pairwise_distances checks for positivity and finite input in that case, but this is unnecessarily restrictive for ripser. pairwise_distances also checks for square input so this is no longer checked in the case metric='precomputed'. But the ripser function is not meant for use in isolation. It is meant to be called by a VietorisRipsPersistence instance, and input validation can be offloaded to that class. In particular, 9bab872 introduces checks for square input. * Add tests for check_point_clouds * Refresh docstrings for VietorisRipsPersistence - Mention "adjacency matrices of weighted undirected graphs" as well as distance matrices - Mention compatibility with filtration in docstrings for fit and transform
* Add citation section in README * Add citation info to FAQ page in docs Signed-off-by: Guillaume Tauzin <[email protected]> Co-authored-by: Umberto Lupo <[email protected]>
* Fix citing giotto-tda section * Fix Important link section
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference issues/PRs
Types of changes
Description
Building on the modifications introduced by @rth to deploy the docs automatically
Screenshots (if appropriate)
Any other comments?
Checklist
flake8
to check my Python changes.pytest
to check this on Python tests.