Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

danielfm/judgr-mongodb

Repository files navigation

MongoDB Support for Judgr

This project adds MongoDB support for Judgr, a naïve Bayes classifier library written in Clojure.

Getting Started

Add the following dependencies to your project.clj file:

[judgr/mongodb "0.1.3"]

Then, require the judgr.mongo.db module and adjust the settings in order to create your classifier:

(ns your-ns
  (:use [judgr.core]
        [judgr.settings]
        [judgr.mongo.db]))

(def new-settings
  (update-settings settings
                   [:database :type] :mongo
                   [:database :mongo] {:database "your-db"
                                       :host     "localhost"
                                       :port     27017
                                       :auth?    false
                                       :username ""
                                       :password ""}))

(def classifier (classifier-from new-settings))

Doing this, all data will be stored in the specified MongoDB instance.

License

Copyright (C) Daniel Fernandes Martins

Distributed under the New BSD License. See COPYING for further details.

About

MongoDB support for Judgr, a naïve Bayes classifier library written in Clojure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published