Coding Brewery

  • Blog
  • Software development
    • Clean Code
    • C++
    • Python
    • Java
    • Devops
      • Docker
      • Linux
  • Machine learning
    • Maths
      • Median absolute deviation (MAD) of Errors
      • R-Squared/Coefficient of determination
      • Distribution of error functions
      • Logarithmic loss (or cross-entropy)
      • Receiver operating characteristic (ROC ) curve
      • Confusion Matrix
      • Maths 101: Part 8: Hypothesis testing
      • Distribution of error functions
      • Maths 101 : Part 7: Estimating Confidence Intervals
    • Data Science Libraries
    • Dimensionality Reduction
  • Career Advice
  • Home
    • Contact Us
    • About

Blog

C++

Implementing 2d Arrays in CPP

C++ hasn’t yet caught up with implementing 2D arrays like other languages yet. So there is no inbuilt 2D array in C++.But lose no hope, with some template programming to the rescue we can create our own multidimensional data structure. Read more…

Like this:

Like Loading...
By admin, 3 yearsDecember 24, 2021 ago
C++

Thread-safe queue implementation in C++

Below is an implementation of thread-safe queue using synchronization primitives.

Like this:

Like Loading...
By admin, 4 yearsSeptember 6, 2021 ago
C++

Custom String implementation in C++

A C++ string class can be implemented in more than one way. I used char*(or rather T*) as a base for implementation. The reason for templatization was to mimic the way standard library does things. It supports all the construction, Read more…

Like this:

Like Loading...
By Deepanshu Lulla, 4 yearsAugust 11, 2021 ago
C++

Compile-time vs run time size computation for array in C++

There are 2 ways in C++ to get the size of an array. The first is using run-time computation with sizeof, but there is a better compile-time way to compute the size. The way to do it as follows: Note: Read more…

Like this:

Like Loading...
By admin, 4 yearsAugust 8, 2021 ago
Miscellaneous

Topological Sort: All possible Orders

Topological Sort is used to find a linear ordering of elements that have dependencies on each other. For example, if event ‘B’ is dependent on event ‘A’, ‘A’ comes before ‘B’ in topological ordering. Lets say we are asked to find Read more…

Like this:

Like Loading...
By admin, 5 yearsJune 13, 2020 ago
Miscellaneous

Measuring Performance of Machine learning models

To measure how well our models are performing we may need to define some metrics. One of the metrics which is quite straight forward is accuracy. Accuracy is defined as the number of correctly classified points divided by the total Read more…

Like this:

Like Loading...
By admin, 6 yearsNovember 24, 2019 ago
Machine learning

Median absolute deviation (MAD) of Errors

Median Absolute deviation is one of the other techniques specifically used for analyzing the performance of regression models. Computing MAD of errors For a univariate data set X1, X2, …, Xn, the MAD is defined as the median of the Read more…

Like this:

Like Loading...
By admin, 6 yearsNovember 10, 2019 ago
Miscellaneous

Clean Code Concepts: Be Solid: Liskov Substitution Principle

Writing clean code is more of an art rather than a science. So What really makes code cleaner?. In this series called Clean Code Concepts, we investigate some of the ways to write code in a clean way. There are several Read more…

Like this:

Like Loading...
By admin, 6 yearsOctober 27, 2019 ago
Machine learning

R-Squared/Coefficient of determination

R-squared is a statistical measure of how close the data are to the fitted regression line. It is also known as the coefficient of determination, or the coefficient of multiple determination for multiple regression. This metric is specifically designed for Read more…

Like this:

Like Loading...
By admin, 6 yearsOctober 20, 2019 ago
Machine learning

Distribution of error functions

We can plot error distributions like probability density functionand cumulative density function and make important deductionsbased on it. We can use plot Probability Density functions(PDF) and Cumulative density function (CDF) by using the error function as a random variable Using Read more…

Like this:

Like Loading...
By admin, 6 yearsSeptember 22, 2019 ago

Posts pagination

Previous 1 2 3 4 … 7 Next
  • About
  • Blog
  • Checkout
  • Contact Us
  • Home
  • Privacy Policy
Hestia | Developed by ThemeIsle
%d