Giter Site home page Giter Site logo

sukritigupta / bayesian_learning Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1023 KB

Learning parameters for a bayesian network based on health records data -Assignment 4 (Artificial Intelligence: COL333)

C++ 99.76% Shell 0.24%
bayesian-networks bayesian-learning

bayesian_learning's Introduction

BAYESIAN LEARNING

Problem Statement

We are given a Bayesian Network that models the inter-relationship between some diseases and observed symptoms. We have to learn parameters for the network based on health records. Unfortunately, as it happens in the real world, certain records have missing values. We need to do our best to compute the parameters for the network, so that it can be used for diagnosis later on.

Input Format

  1. The bayesian network is represented in .bif format. Details of the input format can be found here. The network worked with in this assignment can be found here.
  2. To learn the unknown values, a data file is provided whose each line will be a patient record. All features will be listed in exactly the same order as in the .bif network and will be comma-separated. If a feature value is unknown, the special symbol โ€œ?โ€ for it and there will be no more than 1 unknown value per row.
  3. A format checker to check that the output file adheres to alarm.bif format.

Running the code

  1. To compile
./compile.sh
  1. To run (outputs solved_alarm.bif)
./run.sh alarm.bif sample_data.dat
  1. To check if the output format is according to the specifications and also computes total learning error (wrt gold_alarm.bif)
python Format_checker.py

bayesian_learning's People

Contributors

ansh2233 avatar sukritigupta avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.