Skip to content

Instantly share code, notes, and snippets.

@FlossyM
FlossyM / NaiveBayes
Created February 2, 2017 19:47
A data analysis project
This data set contains census data from the Los Angeles and Long Beach areas for the years 1970, 1980, and 1990.
R studio and packages used:
Plotly : Used for plots and graphical visualization
Mlr : Package for machine learning in R
Data : Used to form tabular and representation of the dataset
Caret : Classification and regression training library
@FlossyM
FlossyM / NCList.cpp
Created February 2, 2017 19:41
Understanding Inheritance - A c++ program
#include <iostream>
using namespace std;
class cell
{ int info;
cell *next;
cell(int i) {info = i; next = this;}
cell(int i, cell *n) {info = i; next = n;}
friend class NC_list;
@FlossyM
FlossyM / map.cpp
Created February 2, 2017 19:30
C++ Program demonstrating Unordered Associative Containers
// Name : Flossy Priya Mascarenhas
/*The below program demonstrate the use of unordered associative container called "unordered_map"
and the use of a sequence container called "vector".
*/
/*unordered_map:the elements in the unordered_map are not ordered. This is due to the use of hashing to store objects.
*/
/*vector: vector data structure is able to quickly and dynamically allocate the necessary memory needed for specific
data storage. Elements of a vector may be referenced in the same manner as elements of arrays.*/
#include <iostream>
/*
Name :Flossy Priya Mascarenhas
Description: Below program in C++ acts as an interpreter of a mini-language.
Language supports variable declarations and three types of statements like assignment statement, input statement and output statement.
Interpreter also checks for possible Syntax, Symantic and Lexical Errors.
*/
#include <iostream>
#include <stdlib.h>
@FlossyM
FlossyM / N-Gram Probabilistic Model
Created February 2, 2017 19:19
N-Gram a probabilistic Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Ngram
{
class Program
{