Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add probability of belonmging to a classification #22

Open
dsietz opened this issue Dec 20, 2020 · 0 comments
Open

Enhancement: Add probability of belonmging to a classification #22

dsietz opened this issue Dec 20, 2020 · 0 comments

Comments

@dsietz
Copy link

dsietz commented Dec 20, 2020

This crate could be highly valuable to the Data Privacy world. If we could teach our systems to flag data that contains sensitive content, (e.g.: PII, NPPI, PCI), we can use Privacy by Design to implement guardrails to avoid privacy breeches or misuse of data.

A suggested enhancement for such an application would be to calculate the chance of a data string belonging to a classification.

Example

// returns 0 to 100
pub fn match_classification(data_to_validate: String, category: String) -> u8 {
    let chance = 0; 

    /*
   calculating ...
   */

    chance
}

let chance = NaiveBayesClassifier::match_classification("ssn: 003-43-7621", "NPPI");
println!("This data is {} likely to be in the NPPI category.", chance); 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant