
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Predictable is a Ruby DSL for Prediction.io, an open source machine learning server built on top of Hadoop. It makes it easy to implement predictive features such as personalization, recommendations, and content discovery in your Ruby/Rails application.
Add this line to your application's Gemfile:
gem 'predictable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install predictable
Include Predictable::User in your application's User model.
class User < ActiveRecord::Base
include Predictable::User
...
end
Include the Predictable::Item in the models of the items you want to recommend.
class Offer < ActiveRecord::Base
include Predictable::Item
...
end
Get 10 recommended items for a user.
Offer.recommended_for(user, 10)
Get 10 items most similar to an existing item.
Offer.similar_to(offer, 10)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that predictable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.