machine-learning-with-ruby
state_machines
Our great sponsors
machine-learning-with-ruby | state_machines | |
---|---|---|
6 | 5 | |
2,064 | 795 | |
- | 1.4% | |
4.6 | 3.3 | |
5 months ago | 6 days ago | |
Ruby | Ruby | |
Creative Commons Zero v1.0 Universal | MIT License |
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.
machine-learning-with-ruby
- 1. What advantages does Python have to make it the preferred language over Ruby for AI/Machine Learning? 2. What is your experience if you working on Ai Machine Learning project with Rails?
- development around data and AI libraries in the Ruby world
-
Why isn't Ruby used for ML?
It's certainly possible (great repo here), but often you'll find that gems are essential ruby bindings for libraries from another language.
-
What is wrong with R, why is Python favored?
Python is a general-purpose language, yes, but so is Ruby. Why isn't Ruby used for data science? Are there any good reasons why something like sklearn could not be implemented in Ruby? Not really.
-
Ruby 3 Released
It actually does. https://github.com/arbox/machine-learning-with-ruby
state_machines
- Gem adds support for creating state machines for attributes on any Ruby class
-
Practical State Machinery
State Machines (Ruby) - A popular library providing a Ruby DSL for easily building finite state machines
-
Why Developers Never Use State Machines (2011)
As a regular user of the state_machine Ruby gem, I wouldn't recommend it. If you don't believe me, just check out the "Class definition" section of the usage examples: https://github.com/state-machines/state_machines#usage
The problems are obvious. It's built on magic and indirection. This leads to difficult to debug state machine problems. For anything beyond simple state machines you quickly lose any idea of what your object is doing.
-
ActiveRecord: Adding Boolean methods for DateTime columns
Might this be better handled with a state machine with active record integration?
-
Ruby 3 Released
Here's an example of how it can happen - look at the code examples in https://github.com/state-machines/state_machines - almost everything you are coding is in the DSL of that library if you are using it:
What are some alternatives?
Awesome NLP with Ruby - Curated List: Practical Natural Language Processing done in Ruby
AASM - AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
are-we-fast-yet - Are We Fast Yet? Comparing Language Implementations with Objects, Closures, and Arrays
State Machine - Adds support for creating state machines for attributes on any Ruby class
langchainrb - Build LLM-powered applications in Ruby
Statesman - A statesmanlike state machine library.
benchmarks - Some benchmarks of different languages
simple_states - A super-slim statemachine-like support library
Eps - Machine learning for Ruby
state_shifter
fiery - A flexible and lightweight web server
transitions - State machine extracted from ActiveModel