A simple and efficient computing package for Genshin Impact gacha analysis

这个版本的计算包追求计算速度,而GGanalysis包有着更多计算功能。 GGanalysisLite包通过卷积计算分布列,通过FFT和快速幂加速卷积计算。 测试玩家得到的排名值rank的数学意义是:与抽了同样数量五星的其他玩家相比,测试玩家花费的抽数大于等于比例rank的玩家。rank的值在(0,1]上,值越高说明玩家越不幸运,达到1则说明达到了保底系统的极限。 安装方法 打开终端输入以下指令,安装完成后下载文件可以删除。 git clone https://github.com/OneBST/GGanalysisLite.git cd GGanalysisLite pip install . 卷积计算方法 采用的模型见我的B站专栏。通过卷积计算分布列。 卷积采用scipy的signal.convolve()函数,由其自动根据规模选择使用FFT计算或是直接卷积。 当计算物品数量上升,获取分布列需要多次卷积时,朴素FFT计算复杂度接近,故采用快速幂进行加速,复杂度降为。 用例 使用GenshinPlayer类添加玩家,初始化其抽卡情况,随后使用类函数输出rank

Read more

Template repo to quickly make a tested and documented GitHub action in Python with Poetry

Getting started from the template Rename the src/action_python_poetry package. Globally replace instances of action-python-poetry and action_python_poetry with your project and package name. If your repo is private, set it up on CodeCov and add a codecov token to your repo under the CODECOV_TOKEN secret. Create and test your action. __main__.py in your package will be executed when the action is run. The environment variables your tests use can be set in pyproject.toml and/or managed in test fixtures. Update action.yml, README.md, […]

Read more

Natural Language Processing Tasks and Examples

With the advancement of A.I. technology in recent years, natural language processing technology has been able to solve so many problems. While working as an NLP engineer, I encountered various tasks, and I thought it would be nice to gather and organize the natural language processing tasks I have dealt with in one place. Borrowing Kyubyong’s project format, I organized natural language processing tasks with references and example code. Automated Essay Scoring Automatic Speech Recognition Dialogue Generation Dialogue Retrieval Fill […]

Read more

Napari 3D Ortho Viewer – an ortho viewer for napari for 3D images

Napari 3D Ortho Viewer – an ortho viewer for napari for 3D images This napari plugin was generated with Cookiecutter using @napari‘s cookiecutter-napari-plugin template. This plugin is heavily inspired by ortho-view-napari. Check out this post on image.sc (https://forum.image.sc/t/napari-visualization-in-3-planes/57768) for more infos about multiview support in napari. This viewer has some additional features: double click to jump to specific position in all slices additional 3d view of 3d stack with lines or planes indicating current position Installation You can install napari-3d-ortho-viewer […]

Read more

An Advent calendar of small programming puzzles for a variety of skill sets and skill levels

English Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. Each challenge requires thinking of a way to solve it and it´s interesting to look at how others solve them with different languages and ideas. I’ve chosen Python as programming language to solve the puzzles. I’ll upload the solution for each puzzle of the day to the repository. Español […]

Read more
1 444 445 446 447 448 1,036