![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Evaluates clusterings of a dataset using a variety of scores.
Add this line to your application's Gemfile:
gem 'cluster_eval'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cluster_eval
Note, you will need a version of g++ installed that is compatible with C++11.
This can be used as a library, or through the installed command line program cluster_eval
.
$ cluster_eval help eval
Usage:
cluster_eval eval [options]
Options:
-a, [--cluster-file-a=CLUSTER_FILE_A] # cluster file A
-b, [--cluster-file-b=CLUSTER_FILE_B] # cluster file B
-y, [--type=TYPE] # type of index to compute
The type
argument specifies the index to compute either the Rand index, Jaccard index, Fowlkes-Mallows index, adjusted Rand index, or all.
It can take on values of: [rand/jaccard/fm/adj_rand/all]
Each cluster file must contain two columns of integers, the first column representing the sample ID, the second column the cluster ID. The sample IDs need not be sorted, but must contain all sample IDs from 0 to n samples.
For example if we have two files clust_a.tab and clust_b.tab, we could run the following:
$ cluster_eval eval -a clust_a.tab -b clust_b.tab -y rand
0.643
$ cluster_eval eval -a clust_a.tab -b clust_b.tab -y jaccard
0.286
$ cluster_eval eval -a clust_a.tab -b clust_b.tab -y fm
0.456
$ cluster_eval eval -a clust_a.tab -b clust_b.tab -y adj_rand
0.200
$ cluster_eval eval -a clust_a.tab -b clust_b.tab -y all
rand jaccard fm adj_rand
0.643 0.286 0.456 0.200
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that cluster_eval 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.