Сказ о том, как нейросеть занялась reward hacking прямо у меня на кухне

Я хотел просто пожарить кесадилью. В холодильнике лежали зеленые оливки (солено-кислые), сулугуни и фарш, а на полке консервированная кукуруза. И вот стою я над сковородкой и думаю: а оливки с кукурузой вообще сочетаются? А сулугуни не пересолит блюдо вместе с оливками? Сколько чего вообще класть? В любой другой ситуации я бы загуглил рецепт. Но не тут-то было, я же великий комбинатор оптимизатор, и у меня в голове сразу всплыло: «это же задача оптимизации». Тем же вечером у меня был ноутбук с обученной нейросетью вместо ужина. Рассказываю, как дошел до жизни такой, и как из этого, внезапно, получился реально вкусный рецепт.

https://habr.com/ru/companies/selectel/articles/1048264/

#python #numpy #машинное_обучение #оптимизация #закон_гудхарта #reward_hacking #кулинария #selectel

Сказ о том, как нейросеть занялась reward hacking прямо у меня на кухне

С чего все началось Я хотел просто пожарить кесадилью. В холодильнике лежали зеленые оливки (солено-кислые), сулугуни и фарш, а на полке — консервированная кукуруза. И вот стою я над сковородкой и...

Хабр

Сказ о том, как нейросеть занялась reward hacking прямо у меня на кухне

Я хотел просто пожарить кесадилью. В холодильнике лежали зеленые оливки (солено-кислые), сулугуни и фарш, а на полке консервированная кукуруза. И вот стою я над сковородкой и думаю: а оливки с кукурузой вообще сочетаются? А сулугуни не пересолит блюдо вместе с оливками? Сколько чего вообще класть? В любой другой ситуации я бы загуглил рецепт. Но не тут-то было, я же великий комбинатор оптимизатор, и у меня в голове сразу всплыло: «это же задача оптимизации». Тем же вечером у меня был ноутбук с обученной нейросетью вместо ужина. Рассказываю, как дошел до жизни такой, и как из этого, внезапно, получился реально вкусный рецепт.

https://habr.com/ru/companies/selectel/articles/1048264/

#python #numpy #машинное_обучение #оптимизация #закон_гудхарта #reward_hacking #кулинария #selectel

Сказ о том, как нейросеть занялась reward hacking прямо у меня на кухне

С чего все началось Я хотел просто пожарить кесадилью. В холодильнике лежали зеленые оливки (солено-кислые), сулугуни и фарш, а на полке — консервированная кукуруза. И вот стою я над сковородкой и...

Хабр

AI With Python 2026 (Part 4)

NumPy is the foundation of AI computation.

Learn:
Arrays
Fast numerical operations
Why NumPy powers AI libraries

No NumPy. No modern AI ecosystem.

Learn more: https://abkarikari23.medium.com/ai-with-python-2026-part-4-introduction-to-numpy-the-foundation-of-ai-computation-4f7b0ddf4472

#AI #Python #NumPy #MachineLearning #DataScience #AIWithPython2026 #JMSM #KNKA

I've admittedly gotten a little lost wading through the source for #Numpy (https://github.com/numpy/numpy), so I thought I'd ask anyone with better familiarity with the internals.

In Numpy, you can do something like

import numpy as np
x = np.linalg.solve(np.array([[1, 1], [3, 5]]), np.array([-1, 2]))

or even

np.linalg.solve(np.array([[1, 2], [3, 5]]), np.array([1, 2+3j]))

and Numpy is smart enough to figure out what the array type of the result ought to be, despite the mixed nature of the input. Which (internal?) function(s) are doing the appropriate type conversions behind the scenes, so that one gets the appropriate result?

I need operations like this for an algorithm I am trying to implement, and I thought it best to not reinvent the wheel.

(Otherwise, how do other Python libraries handle mixed types sanely?)

#python

GitHub - numpy/numpy: The fundamental package for scientific computing with Python.

The fundamental package for scientific computing with Python. - numpy/numpy

GitHub

Размер позиции под микроскопом: Монте-Карло, где честно меняется ровно одна переменная

Дисклеймер о конфликте интересов. Я делаю бесплатные калькуляторы риск-менеджмента для крипто-трейдинга. Чтобы это не выглядело как реклама в каждом абзаце, ссылка на проект в статье ровно одна — в самом конце. Всё остальное здесь — код, математика и числа, которые вы можете воспроизвести у себя за минуту. И сразу к делу — с вопроса, на который у большинства есть «очевидный», но неверный ответ.

https://habr.com/ru/articles/1047262/

#монтекарло #критерий_Келли #рискменеджмент #Python #NumPy #теория_вероятностей #симуляция #управление_капиталом #survivorship_bias

Размер позиции под микроскопом: Монте-Карло, где честно меняется ровно одна переменная

Размер позиции решает всё: Монте-Карло, где честно меняется ровно одна переменная Дисклеймер о конфликте интересов. Я делаю бесплатные калькуляторы риск-менеджмента для крипто-трейдинга. Чтобы это не...

Хабр

[Перевод] Claude против краевых случаев: как LLM-агент нашёл баги в NumPy и других Python-библиотеках

Исследователи Anthropic собрали LLM-агента, который читает код Python-библиотек, сам формулирует свойства, пишет property-based тесты на Hypothesis и ищет контрпримеры. В результате он нашёл баги в NumPy, aws-lambda-powertools, tokenizers и других проектах — часть патчей уже приняли мейнтейнеры. Разбираемся, как работает такой агент, почему property-based тестирование хорошо подходит для LLM и где у подхода пока границы.

https://habr.com/ru/companies/otus/articles/1045852/

#propertybased_testing #тестирование_на_основе_свойств #Claude #LLMагенты #hypothesis #автоматизация_тестирования #поиск_багов #pythonбиблиотеки #NumPy

Claude против краевых случаев: как LLM-агент нашёл баги в NumPy и других Python-библиотеках

Мы разработали агента, который умеет эффективно находить баги в крупных программных проектах. Для этого агент выводит общие свойства кода, которые должны выполняться, а затем применяет тестирование на...

Хабр

📣 Python-Blosc2 4.4.x is out!

🖥️ b2view — interactive TUI to browse any container
🎯 SUMMARY indexes for fast WHERE queries
🧮 DSL kernels as first-class CTable columns
⚡ Faster, chunk-by-chunk NDArray writes
🔀 where() accelerated via miniexpr
💤 Lazy CTable views

Compressed, NumPy-native arrays & tables — even N-dim columns, out-of-core math, Array API.

📝 https://github.com/Blosc/python-blosc2/blob/main/RELEASE_NOTES.md

#Python #NumPy #DataScience

In the last post I introduced the "dual complement" idea for polyhedral graphs. I'm not sure if it has any mathematical significance, but I've made a fun discovery: the dual complement of a spanning tree is another spanning tree.

This result is rather intuitive and I don't have a rigorous proof for it yet, but here are the main supporting ideas. First, a spanning tree over v1 vertices has v1 - 1 edges. We can then show, using basic duality relations and Euler's polyhedral formula, that the dual complement has v2 - 1 edges that connect all of its v2 vertices. The complement doesn't have any cycles, since those would "capture" parts of the original graph, which we know is a single component.

The original polyhedron here is a {3,5+}_2,1 geodesic, so the dual is a Goldberg polyhedron.

No AI, no apps, just my original Python + OpenGL code.

#graphtheory #dualpolyhedron #dualcomplement #spanningtree #geodesicpolyhedron #goldbergpolyhedron #3dgraphics #digitalsculpture #pythoncode #numpy #opengl #creativecodeart #algorithmicart #algorist #mathart #laskutaide #computerart #ittaide #kuavataide #iterati

Introducing a series of posts on the basics of Neural Networks https://janmr.com/posts/neural-networks/01-preface/ #neuralnetworks #machinelearning #numpy
janmr.com | Neural Networks - Preface

Introducing a series of posts on the basics of Neural Networks

janmr.com

Back in the day, I made a couple of demos where a Hamiltonian path is carved out on a polyhedron. Looking back, I started to wonder about the shape left around the path, and what it means in terms of graph theory. I call this shape the "dual complement" of the path.

The dual of a polyhedron is essentially the result of turning faces into vertices and vice versa. This is shown in the first clip with a snub dodecahedron and its dual, the pentagonal hexecontahedron; to keep the view cleaner, I'm only showing the edges of one at a time.

The duality transformation also affects the edges, but their number remains the same, and there's a 1:1 mapping between the original and dual edges. Each dual edge "cuts through" the original. To make the dual complement of a path, I remove the dual counterpart of each edge in the path, leaving only the stuff on the sides. It's like driving a snow plough along the path, leaving walls of snow on the sides.

For the final view, I combine original Hamiltonian paths with their dual complements.

#graphtheory #hamiltonianpath #hamiltoniancycle #dualpolyhedron #dualcomplement #snubdodecahedron #pentagonalhexecontahedron #3dgraphics #digitalsculpture #pythoncode #numpy #opengl #creativecodeart #algorithmicart #algorist #mathart #laskutaide #computerart #ittaide #kuavataide #iterati