TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Leaf: Machine learning framework in Rust

379 pointsby mjhirnabout 9 years ago

13 comments

wall_wordsabout 9 years ago
The performance graph is deceptive for two reasons: (1) Leaf with CuDNN v3 is a little slower than Torch with CuDNN v3, yet the bar for leaf is positioned to the left of the one for Torch, and (2) there&#x27;s a bar for Leaf with CuDNN v4, but not for Torch.<p>It&#x27;s good to see alternatives to Torch, Theano, and TensorFlow, but it&#x27;s important to be honest with the benchmarks so that people can make informed decisions about which framework to use.
评论 #11249544 未加载
评论 #11247546 未加载
评论 #11248618 未加载
IshKebababout 9 years ago
I think Microsoft&#x27;s approach with CNTK is far preferable to this. Rather than defining all the layers in Rust or C++ it uses a DSL to specify mathematical operations as a graph.<p>You can easily add new layer types, and recurrent connections are easy too - you just add a delay node.<p>Furthermore, since the configuration file format is fairly simple, it is possible to make GUI tools to visualise it and - in future - edit it.
评论 #11245143 未加载
rubyfanabout 9 years ago
I&#x27;m honestly skeptical that Rust is all that appealing for this type of work. It just doesn&#x27;t seem like the main concerns like performance and type safety are #1 the top priority in this space and #2 this offering is differentiated enough from what you already get from Java today.<p>Honesly, many modeling problems are clunky and inefficient at scale - however that&#x27;s ok. When you need to scale bad enough, you already have a significant set of library support in Java to support this.<p>I&#x27;m failing to see an answer to the one question I have, &quot;why rust?&quot;
andreifabout 9 years ago
Previous discussion 4 months ago <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10539195" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10539195</a>
YeGoblynQueenneabout 9 years ago
&gt; super-human image recognition<p>That&#x27;s a bold claim. As far as I know there was one paper that reported a model beating human scores in a specific test (imagenet, I believe). Whether that translates to &quot;superhuman&quot; results in general is followed by a very big question mark.<p>In general I really struggle to see how any algorithm that learns from examples, especially one that minimises a measure of error against further examples, can ever have better performance than the entities that actually compiled those examples in the first place (in other words, humans).<p>I&#x27;m saying: how is it possible to learn superhuman performance in anything from examples of mere human performance at the same task? I don&#x27;t believe in magic.
评论 #11245764 未加载
评论 #11245669 未加载
评论 #11246449 未加载
评论 #11245404 未加载
kingnothingabout 9 years ago
I&#x27;m completely new to ML and what real world applications it&#x27;s suitable for. Are we at the point yet where you can train a computer to look at arbitrary images and count the number of people in it? What if it was the largely on the same background and only the number of people were changing -- for example, a camera shooting a queue of people to determine queue depth at a bus station.
评论 #11246373 未加载
评论 #11247922 未加载
评论 #11246605 未加载
评论 #11250113 未加载
eggyabout 9 years ago
I will take a look at it, but are the benchmarks comparable, since to quote the site, &quot;For now we can use C Rust wrappers for performant libraries.&quot;? Torch is LuaJit over C, and Tensorflow has Python and C++. Is Rust making it fast, or the interface code to the C libraries?
评论 #11246659 未加载
ybrahabout 9 years ago
Its interesting to see &quot;technical debt&quot; become a more common term. Is there a rigid definition for it?<p>From the article: <i>&quot;Leaf is lean and tries to introduce minimal technical debt to your stack.&quot;</i><p>What exactly does that mean?
评论 #11245146 未加载
评论 #11245209 未加载
评论 #11245451 未加载
评论 #11245145 未加载
eranationabout 9 years ago
This is very cool! When I presented it to my CTO however, he said that he doesn&#x27;t think this will gain traction from data scientists over Scala or Python, as Rust is even more complex than Scala (which is not the simplest language out there, even though I&#x27;m a big fan of both Scala and Rust and I know this might start a flame war)<p>Do you think Data Scientists can write their models directly using Leaf? do you think there will need to be a DSL that translates form the R &#x2F; Python world to something you can run on Leaf to make it happen?
评论 #11249838 未加载
评论 #11250054 未加载
rckabout 9 years ago
The benchmarks would be a lot more useful if the context around them were more obvious. In particular, it would be nice to know if the benchmarks are for a single input, or for a batch of inputs. If for a batch, then the batch size is important too. Maybe this stuff is somewhere on their site, but it shouldn&#x27;t require digging.<p>Without this information it&#x27;s hard to make a useful comparison at all.
评论 #11246805 未加载
zumpabout 9 years ago
Any recurrent layers?
评论 #11245243 未加载
mastaxabout 9 years ago
I&#x27;m glad that rust has crossed the point where posts to HN that would be &quot;_ in Rust&quot; are now just &quot;_&quot;. I hope this means that Rust is starting to be used for its own merits rather than just novelty.
评论 #11247054 未加载
yarrelabout 9 years ago
1. Rust warning.<p>2. If &quot;for hackers&quot; is the new &quot;for dummies&quot; then gentrification is complete.