Clustering with variational Bayes and population Monte Carlo

Overview

PyPI version DOI Build/Check/Deploy to PyPI

pypmc

pypmc is a python package focusing on adaptive importance sampling. It can be used for integration and sampling from a user-defined target density. A typical application is Bayesian inference, where one wants to sample from the posterior to marginalize over parameters and to compute the evidence. The key idea is to create a good proposal density by adapting a mixture of Gaussian or student's t components to the target density. The package is able to efficiently integrate multimodal functions in up to about 30-40 dimensions at the level of 1% accuracy or less. For many problems, this is achieved without requiring any manual input from the user about details of the function. pypmc supports importance sampling on a cluster of machines via mpi4py out of the box.

Useful tools that can be used stand-alone include:

  • importance sampling (sampling & integration)
  • adaptive Markov chain Monte Carlo (sampling)
  • variational Bayes (clustering)
  • population Monte Carlo (clustering)

Installation

Instructions are maintained here.

Getting started

Fully documented examples are shipped in the examples subdirectory of the source distribution or available online including sample output here. Feel free to save and modify them according to your needs.

Documentation

The full documentation with a manual and api description is available at here.

Credits

pypmc was developed by Stephan Jahn (TU Munich) under the supervision of Frederik Beaujean (LMU Munich) as part of Stephan's master's thesis at the Excellence Cluster Universe, Garching, Germany, in 2014.

If you use pypmc in academic work, we kindly ask you to cite the respective release as indicated by the zenodo DOI above. Thanks!

Day to day maintenance is assisted by Danny van Dyk.

Comments
  • Handle NaN gracefully in sampler.MarkovChain

    Handle NaN gracefully in sampler.MarkovChain

    Lieber Fred,

    I sometimes encounter NaNs in the log(target) in corners of the parameter space. It would be very helpful, if this modification or something similar to it could end up in a released version of pypmc.

    I am also happy to change the name of the keyword argument if you disagree. I had considered e.g. ignore_NaN. Let my know what you think!

    Cheers Danny

    opened by dvandyk 9
  • pypmc from fails to install under Python 3.7

    pypmc from fails to install under Python 3.7

    Installing pypmc with pip under Python 3.7 fails, see e.g. here for an error log.

    I suspect re-generating the Cython files with a more up-to-date Cython version is sufficient to fix it.

    (Of course, having wheels on PyPI would be even cooler...)

    Cheers! D.

    opened by DavidMStraub 8
  • Include pyx files in release

    Include pyx files in release

    Hi Fred,

    This PR does two things:

    It addresses part of #67, with the solution I saw at https://github.com/aresch/rencode/pull/25/files

    And it fixes a type bug I reported before: https://github.com/fredRos/pypmc/pull/59

    Is having the secret deploy keys in the github repository intentional?

    Cheers, Johannes

    opened by JohannesBuchner 7
  • Clarification needed in the example concerning the 'last generated samples/weights'

    Clarification needed in the example concerning the 'last generated samples/weights'

    As @dvandyk realized in the EOS code, there is a global misunderstanding of whether PMC updates should be performed on the last step samples/weights or on all the samples/weights. The misunderstanding is also present in the documentation: https://github.com/pypmc/pypmc/blob/5f705e9c67add23e46999f8b3c2483e1593f3683/examples/pmc.py#L67-L69

    By changing [:] by [-1] as it should be from the comment, the efficiency of the adaptation is greatly improved! A perplexity of 0.99 is obtained after 5 steps vs. 0.53 after 10 steps in the present version of the example!

    opened by mreboud 6
  • Update docs

    Update docs

    • [x] update links in docs to new URL pypmc.github.io/pypmc
    • [x] update theme: old matplotlib theme looks dated now
    • [x] update copyright notice: definitely year, authors?
    • [ ] ~~have a fresh look: text out of date?~~
    • [ ] ~~add section with testimonials or others using pypmc, either in docs or in readme~~
    doc 
    opened by fredRos 6
  • Issues installing pypmc on Windows 10

    Issues installing pypmc on Windows 10

    Whenever I run the setup.py through pip or directly through python it gives me this error: Coding Error Image I went into the setup.py and fiddled with the code and found that these lines were causing the errors: Setup.py Code Issue It allows me to install pypmc if I delete the commands inside the extra_compile_args function, but then it doesn't function properly as it can not import the name 'gauss'.

    wontfix 
    opened by tiseever 5
  • conda package

    conda package

    Hi all,

    This is just to let you know that there is now a pypmc package on conda-forge.

    https://github.com/conda-forge/pypmc-feedstock https://anaconda.org/conda-forge/pypmc

    I used this to build the snowline Bayesian inference package on top of it. https://johannesbuchner.github.io/snowline/

    Cheers, Johannes

    opened by JohannesBuchner 4
  • Improve log messages

    Improve log messages

    This pull request changes the way printing status messages is handled.

    1. All print functionality is replaced by the logging standard library. Messages that were wrapped with if(verbose) are logged as information, or as warnings otherwise.
    2. The new function util.log_to_stdout sets up a basic logging handler for easy standalone usage of pypmc. This function is called in __init__.py as a drop-in replacement of the current behaviour.

    Comments

    • Every submodule uses its own logger such that the level of granularity is still high. E.g. to only log warnings and errors from PMC, use logging.getLogger('pypmc.mix_adapt.pmc').setLevel(logging.WARNING).
    • Note that the default behaviour of logging when no log handler is specified, is to print warnings and errors to stderr.
    • Importing pypmc is setting up a log handler (to stdout), which must be removed explicity to use the module as a library.

    WIP

    • [x] Adding the default StreamHandler creates uncaptured output in the nosetests, as warnings log to stderr. To comply with the previous code, we specify to log only to stdout.
    • [x] Emit deprecation notice for optional verbose argument instead of removing the option (breaking change).
    • [ ] Document logging behaviour and how to use pypmc as a library. The wiki page is a good place to document logging after the proposed changes are approved.

    Solves #95

    opened by pluegh 4
  • Drop support for python2

    Drop support for python2

    Why

    Python2 has reached end of life and from 1.2 and onwards, we won't test the code on that platform anymore. Occasionally, the code is more complex to support two major version of python

    Acceptance criteria

    • [x] All source code can be freed of compatibility constructs to make it work with python 2 and 3
    • [x] the Makefile is cleaned up
    • [x] the docs updated
    packaging 
    opened by fredRos 4
  • Create Gitub Actions workflow to build, check and deploy to PyPI

    Create Gitub Actions workflow to build, check and deploy to PyPI

    • Uses the manylinux2014 docker image. I use the same for EOS. Can be changed later to e.g. manylinux2010 or even manylinux1?
    • Builds for python3 only. Do we really need python2.x?
    • Builds wheel for every commit, but only deploys to PyPI for tagged commits.
    • Builds and deploys documentation for every commit. Should this step deploy only on tagged commits?
    opened by dvandyk 4
  • No .tar.gz for v1.1.4 on pypi.org

    No .tar.gz for v1.1.4 on pypi.org

    Tach @fredRos!

    Since there is not tar.gz file for the v1.1.4 release on pypi, pip falls back to installing from 1.1.2 source on MacOS. I've worked around that problem for the time being my downloading the tarball and installing from the downloaded file in the EOS CI. However, it would be nice if you could make sure that 1.1.4 and future releases support from-source builds.

    opened by dvandyk 4
  • Periodic parameters

    Periodic parameters

    When a parameters is described with an angle (eg the argument of a complex number), MCMC and PMC have trouble describing the periodic boundaries of the parameter range. I see two possible solutions:

    • Allow parameters to be periodic. This may require a bit of work for the correlations and correct distributions though.
    • The user can provide an extended range, eg [-100*pi, 100*pi], but it would be nice if pypmc could wrap the parameter space when estimating certain quantities
    opened by mreboud 7
  • Variational Bayes documentation

    Variational Bayes documentation

    Two issues in the documentation https://pypmc.github.io/user_guide.html#variational-bayes:

    • The url in reference [Bis06] is broken
    • \vecth and \vecgamma are not correctly displayed (at least for me)
    opened by mreboud 2
  • `pip install pypmc` fails on windows

    `pip install pypmc` fails on windows

    I get the following stack trace when trying to install pypmc on Windows 10.

    > pip install pypmc
    Defaulting to user installation because normal site-packages is not writeable
    Collecting pypmc
      Using cached pypmc-1.2.tar.gz (979 kB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
        Preparing wheel metadata ... done
    Requirement already satisfied: numpy<2.0,>=1.6 in c:\program files\python38\lib\site-packages (from pypmc) (1.19.1)
    Requirement already satisfied: scipy in c:\users\astiff\appdata\roaming\python\python38\site-packages (from pypmc) (1.7.1)
    Building wheels for collected packages: pypmc
      Building wheel for pypmc (PEP 517) ... error
      ERROR: Command errored out with exit status 1:
       command: 'c:\program files\python38\python.exe' 'C:\Users\astiff\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\astiff\AppData\Local\Temp\tmpo5rojaiy'
           cwd: C:\Users\astiff\AppData\Local\Temp\pip-install-k386b90x\pypmc_4bb93d97d9944d4592bc69d1ad5ff28e
      Complete output (57 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      creating build\lib.win-amd64-3.8\pypmc
      copying pypmc\_version.py -> build\lib.win-amd64-3.8\pypmc
      copying pypmc\__init__.py -> build\lib.win-amd64-3.8\pypmc
      creating build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\base.py -> build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\base_test.py -> build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\gauss_test.py -> build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\mixture_test.py -> build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\student_t_test.py -> build\lib.win-amd64-3.8\pypmc\density
      copying pypmc\density\__init__.py -> build\lib.win-amd64-3.8\pypmc\density
      creating build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\hierarchical.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\hierarchical_test.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\pmc_test.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\r_value.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\r_value_test.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\variational_test.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      copying pypmc\mix_adapt\__init__.py -> build\lib.win-amd64-3.8\pypmc\mix_adapt
      creating build\lib.win-amd64-3.8\pypmc\sampler
      copying pypmc\sampler\importance_sampling.py -> build\lib.win-amd64-3.8\pypmc\sampler
      copying pypmc\sampler\importance_sampling_test.py -> build\lib.win-amd64-3.8\pypmc\sampler
      copying pypmc\sampler\markov_chain.py -> build\lib.win-amd64-3.8\pypmc\sampler
      copying pypmc\sampler\markov_chain_test.py -> build\lib.win-amd64-3.8\pypmc\sampler
      copying pypmc\sampler\__init__.py -> build\lib.win-amd64-3.8\pypmc\sampler
      creating build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\convergence.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\convergence_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\linalg_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\parallel_sampler.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\parallel_sampler_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\partition_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\plot_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\regularize_test.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\_doc.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\_history.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\_partition.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\_plot.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\_probability_densities.py -> build\lib.win-amd64-3.8\pypmc\tools
      copying pypmc\tools\__init__.py -> build\lib.win-amd64-3.8\pypmc\tools
      creating build\lib.win-amd64-3.8\pypmc\tools\indicator
      copying pypmc\tools\indicator\indicator_factory_test.py -> build\lib.win-amd64-3.8\pypmc\tools\indicator
      copying pypmc\tools\indicator\_indicator_factory.py -> build\lib.win-amd64-3.8\pypmc\tools\indicator
      copying pypmc\tools\indicator\_indicator_merge.py -> build\lib.win-amd64-3.8\pypmc\tools\indicator
      copying pypmc\tools\indicator\__init__.py -> build\lib.win-amd64-3.8\pypmc\tools\indicator
      running build_ext
      creating build\temp.win-amd64-3.8
      creating build\temp.win-amd64-3.8\Release
      creating build\temp.win-amd64-3.8\Release\pypmc
      creating build\temp.win-amd64-3.8\Release\pypmc\density
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\astiff\AppData\Local\Temp\pip-build-env-7tnf_mmt\overlay\Lib\site-packages\numpy\core\include "-Ic:\program files\python38\include" "-Ic:\program files\python38\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcpypmc\density\gauss.c /Fobuild\temp.win-amd64-3.8\Release\pypmc\density\gauss.obj -Wno-unused-but-set-variable -Wno-unused-function -O3
      cl : Command line error D8021 : invalid numeric argument '/Wno-unused-but-set-variable'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      ----------------------------------------
      ERROR: Failed building wheel for pypmc
    Failed to build pypmc
    ERROR: Could not build wheels for pypmc which use PEP 517 and cannot be installed directly
    

    The same command gives no problems when installing on Linux (or WSL).

    I believe it's just that the build is using a compiler flag that is supported by gcc, but not by Visual Studio.

    opened by aestiff 5
  • Installation issues

    Installation issues

    see https://github.com/eos/eos/issues/411 for error messages.

    After closing the issue, the same error cropped up again even though I didn't reinstall pypmc:

    at 21:42:27 ❯ python3.8 -c "import pypmc"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/fred/.local/lib/python3.8/site-packages/pypmc/__init__.py", line 9, in <module>
        from . import mix_adapt, density, sampler, tools
      File "/home/fred/.local/lib/python3.8/site-packages/pypmc/mix_adapt/__init__.py", line 7, in <module>
        from . import hierarchical, variational, pmc, r_value
      File "pypmc/mix_adapt/variational.pyx", line 1, in init pypmc.mix_adapt.variational
    ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
    
    opened by fredRos 1
  • Failing to install pypmc on macOS - could not cythonize

    Failing to install pypmc on macOS - could not cythonize

    Dear all

    I was trying to install pypmc on my Mac (macOS 10.14.5), to use it in EOS, but the installation fails with:

    pip3 install --user pypmc Collecting pypmc Using cached https://files.pythonhosted.org/packages/07/d3/86d432f20b2d82109e431c40e536ccac702a2e1cc85d6974c68b4be5d358/pypmc-1.1.2.tar.gz Requirement already satisfied: numpy in /Users/michel/Library/Python/3.7/lib/python/site-packages (from pypmc) (1.17.0) Requirement already satisfied: scipy in /Users/michel/Library/Python/3.7/lib/python/site-packages (from pypmc) (1.3.1) Building wheels for collected packages: pypmc Building wheel for pypmc (setup.py) ... error ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/4w/rfpfxc9d2ndfgz6lv9xtdrjc0000gn/T/pip-install-f1fe16hz/pypmc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/4w/rfpfxc9d2ndfgz6lv9xtdrjc0000gn/T/pip-wheel-esu5sr7n --python-tag cp37: ERROR: WARNING: Could not cythonize: ModuleNotFoundError("No module named 'Cython'") ... followed by a long list of errors (I can paste them here if needed). I did install cython and it is in my PATH

    Any help is appreciated, thanks!

    opened by MichelDC 13
Releases(v1.1.4)
  • v1.1.4(Jun 21, 2019)

    Improve the CI support and support building and deploying wheels

    Fixed issues

    #62

    changes to the build system

    • Require cython to build the code to avoid brokens builds with newer version of python/cython
    • move to xenial and test on python 3.7
    • add doc and deploy stages
    • test mpi with just one process due to travis limitations
    • build wheels for linux and deploy to Pypi
    • declare pypmc stable on pypi

    Changes to the functional core of pypmc

    None

    Source code(tar.gz)
    Source code(zip)
  • v1.1.2(Jan 23, 2018)

    No change to the actual source code was done but it is now easier to install pypmc from pypi. If numpy is not available, it will be properly installed before at attempt is made to build pypmc itself.

    The basic ground work for binary wheels for multiple platforms via cibuild is done, too. It requires a final tweak and travis to actually build and deploy.

    Source code(tar.gz)
    Source code(zip)
  • v1.1.1(Sep 26, 2017)

    Version 1.1.1

    This is a maintenance release.

    Infrastructure

    pypmc now runs on travis and the docs are automatically built and deployed to http://fredros.github.io/pypmc/html/. Every release is tagged on zenodo.

    Fixes

    • explicit integer/float handling for compatibility with numpy v1.13
    • update color map for compatibility with matplotlib v2.0
    Source code(tar.gz)
    Source code(zip)
  • v1.1(Aug 31, 2016)

    DOI

    New features

    • ImportanceSampler optionally stores the values of the target density
    • plot_mixture can color components based on their weight rather than their index
    • the new PMC class can run multiple EM updates until convergence

    Fixes

    • fix installation on mac without cython
    • compatible to newer version of numpy
    • fix too large a prune value in GaussianInference

    Breaking changes

    • remove DeterministicIS. No class was needed, all the functionality is now contained in combine_weights
    • MarkovChain and ImportanceSampler don't have a combined history anymore, weights and samples are accessible as their own History objects
    Source code(tar.gz)
    Source code(zip)
    pypmc-1.1.tar.gz(832.35 KB)
  • v1.0(Feb 22, 2015)

[PAMI 2020] Show, Match and Segment: Joint Weakly Supervised Learning of Semantic Matching and Object Co-segmentation

Show, Match and Segment: Joint Weakly Supervised Learning of Semantic Matching and Object Co-segmentation This repository contains the source code for

Yun-Chun Chen 60 Nov 25, 2022
A lightweight tool to get an AI Infrastructure Stack up in minutes not days.

K3ai will take care of setup K8s for You, deploy the AI tool of your choice and even run your code on it.

k3ai 105 Dec 04, 2022
Source code for the paper "PLOME: Pre-training with Misspelled Knowledge for Chinese Spelling Correction" in ACL2021

PLOME:Pre-training with Misspelled Knowledge for Chinese Spelling Correction (ACL2021) This repository provides the code and data of the work in ACL20

197 Nov 26, 2022
A library for using chemistry in your applications

Chemistry in python Resources Used The following items are not made by me! Click the words to go to the original source Periodic Tab Json - Used in -

Tech Penguin 28 Dec 17, 2021
Code for EMNLP2020 long paper: BERT-Attack: Adversarial Attack Against BERT Using BERT

BERT-ATTACK Code for our EMNLP2020 long paper: BERT-ATTACK: Adversarial Attack Against BERT Using BERT Dependencies Python 3.7 PyTorch 1.4.0 transform

Linyang Li 142 Jan 04, 2023
A fast MoE impl for PyTorch

An easy-to-use and efficient system to support the Mixture of Experts (MoE) model for PyTorch.

Rick Ho 873 Jan 09, 2023
(JMLR' 19) A Python Toolbox for Scalable Outlier Detection (Anomaly Detection)

Python Outlier Detection (PyOD) Deployment & Documentation & Stats & License PyOD is a comprehensive and scalable Python toolkit for detecting outlyin

Yue Zhao 6.6k Jan 05, 2023
gACSON software for visualization, processing and analysis of three-dimensional electron microscopy images

gACSON gACSON software is to visualize, segment, and analyze the morphology of neurons in three-dimensional electron microscopy images. If you use any

Andrea Behanova 2 May 31, 2022
A Novel Plug-in Module for Fine-grained Visual Classification

Pytorch implementation for A Novel Plug-in Module for Fine-Grained Visual Classification. fine-grained visual classification task.

ChouPoYung 109 Dec 20, 2022
A simple Python library for stochastic graphical ecological models

What is Viridicle? Viridicle is a library for simulating stochastic graphical ecological models. It implements the continuous time models described in

Theorem Engine 0 Dec 04, 2021
Diverse Image Captioning with Context-Object Split Latent Spaces (NeurIPS 2020)

Diverse Image Captioning with Context-Object Split Latent Spaces This repository is the PyTorch implementation of the paper: Diverse Image Captioning

Visual Inference Lab @TU Darmstadt 34 Nov 21, 2022
Unofficial implementation of Google "CutPaste: Self-Supervised Learning for Anomaly Detection and Localization" in PyTorch

CutPaste CutPaste: image from paper Unofficial implementation of Google's "CutPaste: Self-Supervised Learning for Anomaly Detection and Localization"

Lilit Yolyan 59 Nov 27, 2022
Code for NeurIPS 2021 paper: Invariant Causal Imitation Learning for Generalizable Policies

Invariant Causal Imitation Learning for Generalizable Policies Ioana Bica, Daniel Jarrett, Mihaela van der Schaar Neural Information Processing System

Ioana Bica 17 Dec 01, 2022
Customer Segmentation using RFM

Customer-Segmentation-using-RFM İş Problemi Bir e-ticaret şirketi müşterilerini segmentlere ayırıp bu segmentlere göre pazarlama stratejileri belirlem

Nazli Sener 7 Dec 26, 2021
The Official Repository for "Generalized OOD Detection: A Survey"

Generalized Out-of-Distribution Detection: A Survey 1. Overview This repository is with our survey paper: Title: Generalized Out-of-Distribution Detec

Jingkang Yang 338 Jan 03, 2023
DP-CL(Continual Learning with Differential Privacy)

DP-CL(Continual Learning with Differential Privacy) This is the official implementation of the Continual Learning with Differential Privacy. If you us

Phung Lai 3 Nov 04, 2022
PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).

PyGAD: Genetic Algorithm in Python PyGAD is an open-source easy-to-use Python 3 library for building the genetic algorithm and optimizing machine lear

Ahmed Gad 1.1k Dec 26, 2022
GLANet - The code for Global and Local Alignment Networks for Unpaired Image-to-Image Translation arxiv

GLANet The code for Global and Local Alignment Networks for Unpaired Image-to-Image Translation arxiv Framework: visualization results: Getting Starte

stanley 29 Dec 14, 2022
Image processing in Python

scikit-image: Image processing in Python Website (including documentation): https://scikit-image.org/ Mailing list: https://mail.python.org/mailman3/l

Image Processing Toolbox for SciPy 5.2k Dec 31, 2022
PyTorch implementation of our ICCV paper DeFRCN: Decoupled Faster R-CNN for Few-Shot Object Detection.

Introduction This repo contains the official PyTorch implementation of our ICCV paper DeFRCN: Decoupled Faster R-CNN for Few-Shot Object Detection. Up

133 Dec 29, 2022