Week of September 23rd
Stefan Krawczyk
CEO @ DAGWorks Inc. | Co-creator of Hamilton & Burr | Pipelines & Agents: Data, Data Science, Machine Learning, & LLMs
TL;DR:
Hamilton Release Highlights:
Hamilton Framework == 1.78.0
New feature @pipe_output.
@pipe_output? is new decorator to make post-function modifications to function/node results simpler. Thank you to our OS contributor Jernej Frank for leading the charge here! He really drove the implementation + cleaned up a lot of the existing code
Note that @pipe?has been renamed & deprecated in favor of?@pipe_input to make the distinction clear between the two decorators. We will keep @pipe around, until Hamilton 2.0, as we follow proper semantic versioning and don't publish breaking changes until major version updates.
from hamilton.function_modidifers import pipe_output, step
def _add_one(x: int) -> int:
return x + 1
def _sum(x: int, y: int) -> int:
return x + y
def _multiply(x: int, y: int) -> int:
return x * y
@pipe_output(
step(_add_one),
step(_multiply, y=2),
step(_sum, y=value(3)),
step(_multiply, y=source("upstream_node_to_multiply")),
)
def initial_data() -> int:
return 1
# gets turned into (((1 + 1) * 2) + 3) * upstream_node_to_multiply
# with post-function modifications
??Fixes:
领英推荐
Burr Release Highlights
Burr == 0.30.2
from __future__ import annotations
2. We pushed some documentation updates and typos.
Office Hours & Meetup
Hamilton Meet up: We'll have the next meet up in October. Currently it is scheduled for October 15th. We're excited to have Sholto Armstrong talk about their use of Hamilton and the new library they built on top at Capitec . Join/sign-up here.
Hamilton Office Hours: They happen most Tuesday 9:30am PT - 10:30am PT. Join our slack for the link.
Burr Office Hours: They happen most Wednesdays 9:30am PT - 10:3am PT. Join our discord for the weekly link.
In the Wild:
Congratulations to Salesteq Inc. and Dr. Milan Jelisav?i? for shipping their AI product using Burr. We're excited for the momentum and proof points like this that people are delivering AI products better, cheaper, and faster using our tools.