advent-of-code-data
NumPy
advent-of-code-data | NumPy | |
---|---|---|
14 | 272 | |
501 | 26,459 | |
- | 1.2% | |
8.8 | 10.0 | |
3 months ago | 2 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code-data
-
Tips for parsing inputs in Python?
The one additional trick I'd point out is using https://github.com/wimglenn/advent-of-code-data to help automate the process of acquiring your input:
-
[2022 Day 17, Part 1] Works on the example data but not the real data
By the way, I use https://github.com/wimglenn/advent-of-code-data to get the data. I removed it from the code to avoid confusion.
- Get your Advent of Code data with a single import statement
-
Please include your contact info in the User-Agent header of automated requests!
advent-of-code-data updated to match this format in v1.2.3 (#91)
-
GitHub - aloussase/aoc-haskell-template: Advent of Code template for Haskell
I think that's a one-time thing though, so if you get the session cookie now you can use it for the rest of December. There's a python module to grab inputs and submit answers here, would love to see something similar in Haskell!
-
How to prepare for AoC2022?
In addition to doing previous years’, I’d check out https://github.com/wimglenn/advent-of-code-data, which you can use to write some automation about loading data and submitting your responses. If you don’t know how to write unit tests, this might be a good chance to learn the basics. In most problems, he gives you a sample input and the expected result.
-
[Python] Most people: *downloads the puzzle input manually* | Me:
If you absolutely must have something download the input for you, then please use an existing, well-tested system like aocd. More people using it and contributing to it makes it less likely that it will have any significant defects.
-
Retrieving input data files outside of a browser.
While researching this I came across https://github.com/wimglenn/advent-of-code-data . If you are looking for something a little more fleshed out than a command line. It lets you access previous years' data as well. Pretty cool.
-
Python template to automate AoC
Since you're using Python, maybe just use https://github.com/wimglenn/advent-of-code-data/tree/master/aocd that seems to have already done these things.
-
[2021] [python 3.9] AoC framework
advent-of-code-data might be of use for you, it provides some helpers to fetch inputs and submit solutions to structure your solution around.
NumPy
-
Dot vs Matrix vs Element-wise multiplication in PyTorch
In NumPy with @, dot() or matmul():
- NumPy 2.0.0 Beta1
-
Element-wise vs Matrix vs Dot multiplication
In NumPy with * or multiply(). ` or multiply()` can multiply 0D or more D arrays by element-wise multiplication.
- JSON dans les projets data science : Trucs & Astuces
-
JSON in data science projects: tips & tricks
Data science projects often use numpy. However, numpy objects are not JSON-serializable and therefore require conversion to standard python objects in order to be saved:
-
Introducing Flama for Robust Machine Learning APIs
numpy: A library for scientific computing in Python
- help with installing numpy, please
-
A Comprehensive Guide to NumPy Arrays
Python has become a preferred language for data analysis due to its simplicity and robust library ecosystem. Among these, NumPy stands out with its efficient handling of numerical data. Let’s say you’re working with numbers for large data sets—something Python’s native data structures may find challenging. That’s where NumPy arrays come into play, making numerical computations seamless and speedy.
-
Why do all the popular projects use relative imports in __init__ files if PEP 8 recommends absolute?
I was looking at all the big projects like numpy, pytorch, flask, etc.
-
NumPy 2.0 development status & announcements: major C-API and Python API cleanup
I wish the NumPy devs would more thoroughly consider adding full fluent API support, e.g. x.sqrt().ceil(). [Issue #24081]
What are some alternatives?
aoc-haskell-template - Advent of Code template for Haskell
SymPy - A computer algebra system written in pure Python
blitzen - A helpful reindeer to fetch inputs from — and submit answers to — Advent of Code.
Pandas - Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
aoc2021
blaze - NumPy and Pandas interface to Big Data
aoclib - Utilities convenient for Advent of Code solutions in Rust
SciPy - SciPy library main repository
AdventOfCodeBase - Template repository for solving Advent of Code puzzles, which automatically handles input retrieval and output.
Numba - NumPy aware dynamic Python compiler using LLVM
aoc_helper - @salt-die's aoc_helper package, rewritten from the ground up
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).