Saravanan666/pypi-org huggingface dataset:
Package: ufmt
µfmtSafe, atomic formatting withblackandµsortµfmt is a safe, atomic code formatter for Python built on top ofblackandµsort:Black makes code review faster by producing the smallest diffs possible. Blackened code looks the same regardless of the project you’re reading.μsort is a safe, minimal import sorter. Its primary goal is to make no “dangerous” changes to code, and to make no changes on code style.µfmt formats files in-memory, first with µsort and then with black, before writing any
changes back to disk. This enables a combined, atomic step in CI/CD workflows for
checking or formatting files, without any chance of conflict or intermediate changes
between the import sorter and the code formatter.Installµfmt requires Python 3.8 or newer. You can install it from PyPI:$pipinstallufmtIf you want to prevent unexpected formatting changes that can break your CI workflow,
make sure to pin your transitive dependencies–including black, µsort, and µfmt–to your
preferred versions.If you userequirements.txt, this might look like:black==22.6.0
ufmt==2.0.0
usort==1.0.4UsageTo format one or more files or directories in place:$ufmtformat<path>[<path>...]To validate files are formatted correctly, like for CI workflows:$ufmtcheck<path>[<path>...]To validate formatting and generate a diff of necessary changes:$ufmtdiff<path>[<path>...]IntegrationsSee theuser guidefor details on each integration.GitHub Actionsµfmt provides a GitHub Action that can be added to an existing workflow,
or as a separate workflow or job, to enforce proper formatting in pull requests:jobs:ufmt:runs-on:ubuntu-lateststeps:-uses:omnilib/ufmt@action-v1with:path:<PATH TO CHECK>requirements:requirements-fmt.txtpython-version:"3.x"pre-commit hookµfmt provides apre-commithook. To format your diff before
every commit, add the following to your.pre-commit-config.yamlfile:-repo:https://github.com/omnilib/ufmtrev:v2.0.0hooks:-id:ufmtadditional_dependencies:-black == 22.6.0-usort == 1.0.4Visual Studio Codeµfmt has an official VS Code extension to use µfmt as a formatter for Python files.
Once installed, µfmt can be set as the default formatter with the following settings:"[python]":{"editor.defaultFormatter":"omnilib.ufmt"}µfmt can automatically format when saving with the following settings:"[python]":{"editor.defaultFormatter":"omnilib.ufmt","editor.formatOnSave":true}For more details, or to install the extension, see the Visual Studio Marketplace page:Licenseufmt is copyrightAmethyst Reese, and licensed under
the MIT license.  I am providing code in this repository to you under an open
source license.  This is my personal repository; the license you receive to
my code is from me and not from my employer. See theLICENSEfile for details.
Package: ufo-draw
ufo_drawAllows you to quickly draw feynman diagrams from ufo model files.Installationpipinstallufo_draw# Install itwith optional--useror--break-system-packages.
However due to the amount of dependencies it might be better to install it using pipx to have dependencies in isolated versionspipxinstallufo_drawExampleufo_draw --initial "nu_e nu_e_bar" --final "nu_e nu_e_bar" -o diagram -m ufo_smcreates following diagrams viapyfeyn2from theufo_smmodel usingpyqgraf.
Package: ufo-extractor
UFO ExtractorTools for extracting data from font binaries into UFO objects.FeaturesImport data into aDefconFontinstance:>>>importextractor>>>importdefcon>>>ufo=defcon.Font()>>>extractor.extractUFO("/path/to/MyFont.ttf",ufo)>>>ufo.save("/path/to/MyFont.ufo")Supported input formats:CFF or TrueType-flavored OpenType fonts (*.otf,*.ttf)FontToolsTTX files
(*.ttx)WOFF 1.0/2.0 (*.woff,*.woff2)PostScript Type1 fonts (*.pfa,*.pfb, etc.)InstallationYou can installextractorwithpip:$ pip install ufo-extractorNote that, for historical reasons, the package is listed on thePython Package Indexunder the nameufo-extractor, to disambiguate it from another package also called “extractor”.
However, the import name for the package remainsextractor, without prefix.
Package: ufoLib2
ufoLib2ufoLib2 is meant to be a thin representation of the Unified Font Object (UFO) version 3 data model, intended for programmatic manipulation and fast batch processing of UFOs.It resembles the defcon library, but does without notifications, the layout engine and other support classes. Where useful and possible, ufoLib2 tries to be API-compatible with defcon.It does not replacefontTools.ufoLibbut builds on it. The eventual goal is to merge it intofontTools.ufoLib.objects.Documentation:https://ufolib2.readthedocs.io/en/latest/
Package: ufomerge
ufomergeThis command line utility and Python library merges together two UFO source format fonts into a single file. It can be used to include glyphs from one font into another font. It takes care of handling:Glyph outlines and informationKerninglibentriesIncluding any needed components"Subsetting" and merging layout rulesUsageTo merge the glyphs offont-b.ufointofont-a.ufoand save asmerged.ufo:$ ufomerge --output merged.ufo font-a.ufo font-b.ufoTo include particular glyphs:$ ufomerge --output merged.ufo --glyphs alpha,beta,gamma font-a.ufo font-b.ufoTo include glyphs referencing particular Unicode codepoints:$ ufomerge --output merged.ufo --unicodes 0x03B1,0x03B2,0x03B3 font-a.ufo font-b.ufoOther useful command line parameters:-G/--glyphs-file: Read the glyphs from a file containing one glyph per line.-U/--codepoints-file: Read the Unicode codepoints from a file containing one codepoint per line.-x/--exclude-glyphs: Stop the given glyphs from being included.-v/--verbose: Be noisier.What to do about existing glyphs:--skip-existing(the default): If a glyph fromfont-balready exists infont-a, nothing happens.--replace-existing: If a glyph fromfont-balready exists infont-a, the new glyph replaces the old one.What do to about OpenType layout (features.fea). Suppose there is a rulesub A B by C;, and the incoming glyphs areAandB:--subset-layout(the default): the rule is dropped, becauseCis not part of the target glyphset. The ligature stops working.--layout-closure:Cis added to the target glyphset and merged intofont-aso the ligature continues to work.--ignore-layout: No layout rules are copied fromfont-bat all.Usage as a Python libraryufomergeprovides two functions,merge_ufosandsubset_ufo. Both takeufoLib2.Fontobjects, and are documented in their docstrings.LicenseThis software is licensed under the Apache license. SeeLICENSE.
Package: uforge-marketplace_python_sdk
The API is automatically generated with apitools/python/ApiAndCli_genTo generate it, put the Marketplace application.wadl and the Marketplace XSD in apitools/python/ApiAndCli_gen/data
Then:
(cd apitools/python/ApiAndCli_gen/; python setup.py clean build)
This will generate a folder called application in apitools/python/ApiAndCli_gen/build.
Then you need to do : mv apitools/python/ApiAndCli_gen/build/application apitools/python/Marketplace_python_sdk/src/marketplace
Package: ufostroker
ufostroker-pyThis Python module wraps the RustMFEK/mathlibrary's capability for path stroking. It currently exports one function,constant_width_stroke:fromufostrokerimportconstant_width_strokef=ufoLib2.Font("tests/data/Scurve.ufo")constant_width_stroke(f["A"],width=50,startcap="square",endcap="square")This modifies the glyph in place. The library works with defcon and ufoLib2
objects.This may also be used as a fontmake command line plugin:fontmake --filter 'ufostroker::StrokeFilter(pre=True,Width=50)' -u OpenPaths.ufo -o ttfOr by adding a lib key into the UFO file'slib.plistfile:<key>com.github.googlei18n.ufo2ft.filters</key><array><dict><key>name</key><string>ufostroker.StrokeFilter</string><key>pre</key><true/><key>kwargs</key><dict><key>Width</key><integer>50</integer><key>StartCap</key><string>square</string><key>EndCap</key><string>square</string><key>JoinType</key><string>mitre</string><key>RemoveExternal</key><true/></dict></dict></array>BuildingUsematurinto buildufostroker.pip3 install maturin
python3 -m venv strokervenv
. ./strokervenv/bin/activate
maturin develop
maturin build # Build wheelLicenseApache 2.
Package: ufo-tools
UFO 🛸uniform functional orchestratorsDelicious monads and functional programming patterns in python!Check out the api docs for referenceProject GoalsThis library is meant to implement a simple tools for functional programming in python in a way that:Can be intergrated quickly/simply with existing codeMaintains type safetyDepends only on the standard libraryQuick StartInstall libary with pip:pipinstallmonadcontainersYou can now import monad classes for handling functional chains over data.Say we want to pass a value through a list of functions like so:defadd_six(x:int)->int:returnx+6defminus_two(x:int)->int:returnx-2x=minus_two(add_six(4))# x == 8This can be a little messy with long calls, more importantly monads can handle repeated work for us with each call (but we'll cover that in a sec).A basic identity Monad implementing the above looks like this:frommonadcontainers.monadsimportMonadx=(Monad(4).bind(add_six).bind(minus_two))# x == Monad(8)y=x.value# y == 8This above pattern chains the Monad contained value through the relevant functions. For alternative syntactical sugar to thebindmethod, you can use>>:x=(Monad(4)>>add_six>>minus_two)# x == Monad(8)We can also use Monads to handle additional functionality for us, like error handling with theResultmonad:defdivide_by_zero(x:int)->int:returnx/0x=(Result(4)>>add_six>>divide_by_zero>>minus_two)# x is a result monadx.unwrap()# <- raises divide by zero exceptionx.unwrap_or(42)# <- evaluates to 42x.value# <- is None (since exception has been raised)x.exception# <- is a ZeroDivisionErrorx.recover(add_six)# <- will apply the given function to the last non-error stateMonad's can be a helpful pattern for functional programming, see the docs for more info on available Monad classes.Enjoy! 👍
Package: ufp
ufp 라이브러리 python 버전. 각종, 편리한 함수들의 모음.특징PKCS#5 표준 패딩 제거html 문서 규격화시키기html 문서를 텍스트로 바꾸기그레이 스케일 이미지에 Improved Gray Scale(IGS) 양자화 적용시키기이미지 색상 깊이 바꾸기이미지 가장자리에서 빈도 높게 나타나는 색상 추출하기이미지의 여백 제거하기탐색 깊이 제한하여 재귀적으로 경로 탐색하기폴더의 모든 내용물을 옮기기파일의 최근 수정시각을 지정된 포멧으로된 문자열로 얻기부모 경로와 자식 경로들을 합치기필터링된 디렉토리 내 파일 목록 얻기경로를 url로 바꾸기운영체제의 파일 경로에서 사용 불가능한 문자 대체시키기부모 경로 추출주어진 경로에서 중복되지 않는 유일한 경로 얻기확장자를 제외한 파일명 추출하기파일 경로에서 확장자 추출하기pdf파일을 bmp 이미지로 바꾸기램덤 문자열 만들기문자열을 쉘 콰우팅시키기문자열에서 제어 문자 제거하기파일을 휴지통에 버리기웹 파일명을 다듬기자바 스크립트 콰우팅을 콰우팅 해제하기requests 세션에 쿠키 파일 불러오기기타 등등…사용 환경Linux / Unix / MaxOS / POSIX 계열사용 예주어진 경로에서 유일한 경로를 생성하기예제 :http://runnable.com/VQ5dcHQEFNQakHJ3/generate-unique-path-at-filepath-or-dirpath-for-python>>>importufp.path>>>importos>>>os.listdir('.')['test.file']>>>ufp.path.unique('./test.file')./test(d1).file>>>f.open('./test (d1).file','w').close()>>>ufp.path.unique('./test.file')./test(d2).filepdf 파일을 bmp 변환하여 저장하기예제 :http://runnable.com/VQ-PD6EuyEYfeJNo/convert-pdf-to-bmp-for-python>>>importufp.pdf>>>withopen('page1.pdf')asf:>>>pdf=f.read()>>>forbmpinufp.pdf.toBmps(pdf,dpi=200):>>>break>>>withopen('page1.bmp')asf:>>>f.write(bmp)이미지의 여백 제거하기예제 :http://runnable.com/VQ5WVo8OIogZ-_hv/trim-image-edge-whitespace-with-fuzz-for-python>>>importufp.image>>>importPIL.Image>>>im=PIL.Image.open('test.jpg','r')>>>ufp.image.trim(im,fuzz=13.3).save('trim.jpg')Improved Gray Scale(IGS) 양자화예제 :http://runnable.com/VQ5o_OpMIyQdA6zE/image-quantize-by-improved-gray-scale-for-python>>>importufp.image>>>importPIL.Image>>>im=PIL.Image.open('test.jpg','r')>>>im=im.convert('L')>>>ufp.image.quantizeByImprovedGrayScale(im).save('igs.jpg')최대 탐색 깊이를 제한하여 탐색>>>importufp.path>>>forroot,dirs,filesinufp.path.walk('.',maxDepth=0):...print(root,dirs,files)...'.',['ufp'],[]html 문서를 text로 변환>>>importufp.html>>>importrequests>>>html=requests.get('http://www.gnu.org/licenses/').content>>>ufp.html.toText(html.decode('utf8'))u"Licenses\\n- GNU Project - Free Software Foundation\\n\\n\\n ...진행 표시 창 열기>>>importufp.gui>>>importtime>>>a=ufp.gui.PulseProgress('title','message')>>>a.open();time.sleep(3);a.close()도움말다음 문서를 참조 하십시오:http://pyufp.readthedocs.org/index.html.수정사항changelog.rst문서를 참조하세요.라이센스GPL v3개발자별님 <w7dn1ng75r@gmail.com>파이썬 환경오직 2.7 버전대에서만 사용 할 수 있습니다.설치 방법설치 문서를 참조하십시오:http://pyufp.readthedocs.org/installation.html소스 코드소스 코드는 다음 사이트에 올려져 있습니다:https://github.com/Thestars3/pyufp.
Package: ufro-uhi-plot
ufro_uhi_plotPython proyect to plotting urban heat island.Installpip install ufro_uhi_plotHow to useImport Uhi from the packagefrom ufro_uhi_plot.uhi import UhiInstantiate the Uhi Classfile_path = "examples/data_example.csv"
station_label = "Vivienda.ID"
datetime_label = "Fecha"
temperature_label = "Pm25"
latitude_label = "Latitud"
longitude_label = "Longitud"

uhi = Uhi(file_path,station_label,datetime_label,temperature_label,latitude_label,longitude_label)Plot the images according your preferencesoutput_folder="examples/generated maps"

days_array = ["2019-05-26"]
extent = [-72.69,-72.53,-38.78,-38.68]
prefix_file = "contamination map"
unit = "ug/m³"
mapbox_username = #<insert your mapbox's username>
mapbox_token= #<insert your mapbox's token>

uhi.plotImagesPerDaysArray(output_folder,days_array,extent,prefixFile=prefix_file,hasLimits=True,Z_UNIT=unit,mapbox_username=mapbox_username,mapbox_token=mapbox_token)Successfully created the directory examples/generated maps
Plotting UHI Map of  2019-05-26
...
2019-05-26 00:59:35
2019-05-26 01:59:35
2019-05-26 02:59:35
2019-05-26 03:59:35
2019-05-26 04:59:35
2019-05-26 05:59:35
2019-05-26 06:59:35
2019-05-26 07:59:35
2019-05-26 08:59:35
2019-05-26 09:59:35
2019-05-26 10:59:35
2019-05-26 11:59:35
2019-05-26 12:59:35
2019-05-26 13:59:35
2019-05-26 14:59:36
2019-05-26 15:59:35
2019-05-26 16:59:35
2019-05-26 17:59:35
2019-05-26 18:59:35
2019-05-26 19:59:35
2019-05-26 20:59:35
2019-05-26 21:59:36
2019-05-26 22:59:35
2019-05-26 23:59:35
Plot completed 2019-05-26Google Colab useIf you have a problem with Google Colab you can install binary shapely in a jupyter notebox that fix this.!pip uninstall shapely --yes
!pip install shapely --no-binary shapely
Package: ufs
Unified File SystemDevelopers face common problem in writing code in local filesystem first and then make the code to work with S3.
This creates a painful situation if not too much of code duplication.Unified File System (ufs) package solves that problem where it exposes genericFileandDirectoryclasses.Unified File System is an Object-Oriented way to work seamlessly between Posix and S3 filesystemsDescriptionUsually we pass two different kinds of path parameter (Posix vs S3). And, we have to handle them differently either
usingosorboto3python library.Withufs, we have a wrapper classes likePosixFile/S3File(inherits fromFile)
andPosixDirector/S3Directory(inherits fromDirectory).This makes writing functions and classes with a clear expectation to run with both Posix and S3 paths seamlessly.InstallationInstall with pip:pipinstallufs
Package: ufs2arco
ufs2arcoTools for converting Unified Forecast System (UFS) output to Analysis Ready, Cloud Optimized (ARCO) formatInstallationInstallation from pippipinstallufs2arcoInstallation from GitHubTo obtain the latest development version, clonethe repositoryand install it as followsgitclonehttps://github.com/NOAA-PSL/ufs2arco.gitcdufs2arco
pipinstall-e.
Package: ufs-pyutils
DescriptionTheufs_pyutilspackage contains an toolbox of APIs for various
workflow and diagnostic tool applications. Currently this utilized by
multiple applications derived from theUnified Forecast
System(UFS). However, it is not limited
only to the UFS and may be useful and/or applicable to other such
packages.InstallationTheufs_pyutilspackage may be installed as follows.user@host:$ pip install --user ufs-pyutilsThe unit-tests for the available APIs may be executed as follows.user@host:$ cd /path/to/ufs_pyutils
user@host:$ /path/to/pytest confs
user@host:$ /path/to/pytest ioapps
user@host:$ /path/to/pytest tools
user@host:$ /path/to/pytest utilsNote that the respective unit-tests requirepytestandpytest-order.DocumentationThe API documentation can be foundhere.
Package: ufss
Ultrafast Spectroscopy Suite (UFSS)Code for simulating nonlinear optical spectroscopies of closed and open systemsInstallation instructionspip install ufss(Note: ufss is only written for python 3, so you may need to run
pip3 install ufss if pip points to python 2 on your machine)Visualizing Feynman diagrams requires a TeX distribution(If you would like to try ufss out without cloning this repository or installing, see below for links to Google Colaboratory notebooks)OverviewContains 4 separate modules:Diagram Generator (DG) - tool for automatically generating all Feynman diagrams for arbitrary order nonlinear optical spectroscopiesclass DiagramGenerator in ufss/diagram_automation.pyUltrafast Ultrafast (UF2) - fast algorithm for calculating individual Feynman diagrams including arbitrary pulse shapesfor closed systems: class Wavepackets in ufss/UF2_core.pyfor open systems: class DensityMatrices in ufss/UF2_open_core.pyRunga-Kutta-Euler (RKE) - alternative algorithm for calculating individual Feynman diagrams including arbitrary pulse shapesfor closed systems: to be included in this repository eventually. For a working version seehttps://github.com/peterarose/ultrafastultrafastfor open systems: class RKE_DensityMatrices in ufss/RKE_open_core.pyHamiltonian/Liouvillian Generator (HLG) - tool for generating vibronic Hamiltonians and (optionally) Liouvillians from simple parameter inputscontained in vibronic_eigenstates sub-directoryTaking a test drive in Google's ColaboratoryTo try ufss without installing or downloading the repository,
follow this link to see examples using the Diagram Generator:https://colab.research.google.com/github/peterarose/ufss/blob/master/DiagramGeneratorExample_Colab.ipynband this link to see examples using the Hamiltonian/Liouvillian Generator and open UF2:coming soon(Note: Google's Coloaboratory gives a warning message about running Jupyter
notebooks not authored by Google. When prompted by the warning, select
"RUN ANYWAY", and then click "YES" when it asks you if you would like to
reset all runtimes)ExamplesThere are four jupyter notebooks included with this repository that give examples of working with the diagram generator and generating spectroscopic signals. Some notebooks show how to generate figures in the manuscripts describing UFSS.DependenciesThis code depends upon the following packages:numpy, matplotlib, pyfftw, scipy>=1, pyyaml, pyxTo get started with this code, clone this repo and have a look at the four jupyter notebooks contained within. They give examples of working with the diagram generator and generating spectroscopic signals. They also show how to generate figures in the manuscripts describing UFSS.[1] Peter A. Rose and Jacob J. Krich, "Automatic Feynman diagram generation for nonlinear optical spectroscopies and application to fifth-order spectroscopy with pulse overlaps",J. Chem. Phys. 154, 034109 (2021)[2] Peter A. Rose and Jacob J. Krich, "Efficient numerical method for predicting nonlinear optical spectroscopies of open systems",J. Chem. Phys. 154, 034108 (2021)
Package: ufs-tools
ufs_toolsSome functions can be used during python developmentFree software: ISC licenseDocumentation:https://ufs_tools.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-04-30)First release on PyPI.
Package: uft
UFT 2.0.6UFT (Universal File Transfer) is a CLI tool , which can  be used to upload files to a public server and any one can download it...### Status
  - https://raw.githubusercontent.com/darkmash-org/UFT/main/status.txtFeaturesEncrytion (RSA)Easy to useINSTALLER ( for linux )Up Commings - v3SPV(secure password varification)File compressionE2EERelaysDecentralisedInstallation :Using Pip:pip install uft # or pip3 install uft (on linux)Linux:git clone https://github.com/mastercodermerwin/UFT.gitcd UFTsudo python3 installer.py # or python installer.pyOn Other OS`sUse without adding to path..git clone https://github.com/mastercodermerwin/UFT.gitcd UFTpython main.pyHow To Use:user> uft helpGet help how to use UFT.user> =uft upload (filename) (password)Upload a file.user> uft download (filename) (output)Download a file.user> uft delete (filename) (password)Delete a file.user> uft replace (filename) (newfile) (password)Replace a file.TestingLicenseMITAuthors@Merwin✨Discord Server & SupportDarkmash Official Server⬇️ ⬇️ ⬇️ ⬇️ INVITE LINK ⬇️ ⬇️ ⬇️ ⬇️https://discord.gg/SC54bSgnyQ
Package: ufterm
User Friendly TerminalSimple module help user to use terminal script.The library allows to see a Graphical Interface instead of a terminal.Code exampleimportuftermasuftdefcommand1():...defcommand2():...if__name__=='__main__':uft.add_command(command1)uft.add_command(command2)uft.loop()Issues/Bug report or improvement ideashttps://gitlab.com/olive007/user-friendly-terminal/-/issuesLicenseGNU Lesser General Public License v3 or later (LGPLv3+)
Package: uftlib
This project provides a library which allows for very flexible and fast template renderings at the expense of security.
It uses python code to generate variables which are then substituted in a string.Template.ExamplesHere’s a basic example:fromuftlibimportUFTemplateinitial="""import datetime
def f(x):
    return x*x

def getnow():
    return str(datetime.datetime.now())

a = 0
b = 100
i = 0"""oncycle="""a += 3
i += 1
s = f(i)
b += a
now = getnow()"""template="""Now = ${now}Render nr. ${i}f(${i}) = ${s}b = ${b}We live in ${where}"""tpl=UFTemplate(initial,oncycle,template,where="Indonezia")fortextintpl.render_many(1):print(text)We should get the following output:Now = 2015-08-25 16:09:07.015948
Render nr. 1
f(1) = 1
b = 103
We live in IndoneziaWe can reset the template to it’s initial state and obtain the same results:tpl.reset()fortextintpl.render_many(2):print(text)You should get the following output:Now = 2015-08-25 16:09:07.016970
Render nr. 1
f(1) = 1
b = 103
We live in Indonezia
Now = 2015-08-25 16:09:07.017298
Render nr. 2
f(2) = 4
b = 109
We live in IndoneziaWarningYou can put any kind of python code in the initial section, such as open and read web pages,
connect to databases, read and parse other files, but this comes at the expense of security,
as malitious code will be run on the same environment as the interpreter. This is a tradeoff
which is not advantageous for all projects and needs, so use this library at your own expense.FlexibilityThe three required arguments (initial, oncycle and template) may be stored on a database and
may be retrieved by multiple programs in the network, which parallelize and distribute the task.
Most templating engines store some of the logic in the template and some of it in the code which
calls the template render, leading to a big mess. Use uftlib to cut that corner.
Package: ug100
UG100A dataset containing adversarial results for seven approximate attacks (+ MIP) on a subset of the MNIST and CIFAR10 test datasets. Specifically, it contains ~2.3k adversarial examples generated by the following attacks:Basic Iterative Method (bim)Brendel & Bethge Attack (brendel)Carlini & Wagner Attack (carlini)Deepfool (deepfool)Fast Gradient Sign Method (fast_gradient)Projected Gradient Descent (pgd)Uniform noise (uniform)MIPVerify (mip)It also includes adversarial distances (for all attacks) and bounds (for MIP), as well as MIP convergence times.Applications of this dataset include:Studying how, when and why adversarial attacks are close-to-optimal;Training classifiers that are robust to adversarial noise;Benchmarking new adversarial attacks.The code used to generate UG100 can be foundhere.Installationpip install ug100Implementation NotesSince there aren't adversarial examples for every element of the test sets, we store the adversarials as an index-to-results dictionary.
For sequential access, useIndexDataset.Additionally, we do not store the corresponding genuine examples for MNIST and CIFAR10. If you're using PyTorch, consider usingTorchVision's dataset library.Citing this DatasetPlease cite this dataset as:Samuele Marro and Michele Lombardi. _Asymmetries in Adversarial Settings_. 2022.