Spaghetti Code Almost Live - Finishing the Bayesian Filter

3/27/2008 1:02:00 PM
Another installment of the Almost Live series and the Bayesian Filter is completed.  If you haven't been following along, one of the program requirements was to be able to filter past performance data automatically.  The application, written using C#, uses a Bayesian filter to automatically filter the data and separate the data into "good" data and "bad" data, with later algorithms using the "good" data.  It is a relatively simple Bayesian filter, but it demonstrates how to go about training a filter, the roll the filter's threshold can play, and discusses some areas to build a more complex filter.  At the end of the day, it is has turned out to be a very powerful solution for filtering data, so if you are ever faced with a situation where you know what is good and bad and want to teach a computer how to approximate that same type of knowledge, a Bayesian filter could be the way to.

Source code available for download here.

Double-click for full screen

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

Spaghetti Code Almost Live - Building the Bayesian Filter Part I

3/18/2008 3:17:00 AM
Continuing on in the effort to add a Bayesian filter to our "analysis" program, I show you the basic steps of configuring our filter so we can train it to sift through past performance data.  It's pretty straight forward, but Bayesian filters pretty much are that way.  There is nothing complicated about them, but the results will seem almost like magic.  I show at the end of the screencast the training app used to train our filter and will provide a bit more detail on that part of the solution in the next screencast.  That is also when I will show you how we actually use the filter to analyze data and filter the good from the bad.

You can download the source here.

Note:  I accidentally set the screencast to start with the volume muted.  So you will need to click the mute button to get the sound working.  Sorry - I will try and upload a good player config later.
Double-click for full screen

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

Spaghetti Code 'Almost Live' - Using Reflection with Custom Attributes

2/15/2008 9:57:00 AM
In this episode, I use the custom attribute from the previous episode along with reflection to load data into a given object.  This sets the stage for being able to load all the data needed to begin to process races, and with that, to the first big step in using that data - a Bayesian Filter!  You can get the source for HorseNET up to this point by downloading it here.

Double-click for full screen

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

Spaghetti Code 'Almost Live' 1: Custom Attribute

1/18/2008 9:28:00 AM
The first "coding edition" of Almost Live is up and can be viewed.  In this session, I introduce how I will use custom attributes to map data from the Daily Racing Form CSV data file into my application.  You will see the type of data we are dealing with and I create the custom attribute that we will be using.  In the next session, I will show how we will use the custom attribute in conjunction with reflection to parse the data and load it into objects.  You can download the source project (not a ton right now of course) here.

Double-click for full screen

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

Spaghetti Code Named Pipes Part II - Simple Named Pipes

1/10/2008 11:01:00 PM
Part 2 of the Spaghetti Code Series on the new Named Pipes feature in .NET 3.5 is now available (download here).  The series continues with another simple example of Named Pipes with this installment shifting from anonymous pipes to actual named pipes.  I also introduce how a message-based pipe works compared to the byte-based pipe we looked at with anonymous pipes.  Still a fairly simple example, but we are moving forward!  Next up in the series will be working bi-directionally and also some async work. 
Double-click for full screen

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

First Installment of Spaghetti Code 'Almost Live'

1/7/2008 12:44:00 PM
Here is my first installment of Spaghetti Code "Almost Live".  It provides a basic intro of what "Almost Live" is about and what the application will be.  I'm excited to see how this goes since it is a big opportunity for me to code and have some fun.  You can also download the WMV file if you would like to watch it offline.

Double-click for Full Screen

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

SpaghettiCode Screencast - Part I: Anonymous Pipes

12/14/2007 1:00:00 PM

A new feature in .NET 3.5 is the System.IO.Pipes namespace.  You can use this to created anonymous or named pipes between processes.  You could do the same thing with WCF, so I'm going to go through a series of screencasts to let you see the new features and then look at how you would accomplish similar things using WCF. 

The first video in the series looks at anonymous pipes.  Very primitive and most people will probably use named pipes, but its best to start with the basics. And perhaps you will have a scenario where anonymous pipes works for you.  This screencast is pretty much a rehash of what you find in the docs, but sometimes watching is more fun that skipping between pages in Help.

You can also download the Anonymous Pipes demo, and see other Spaghetti Code screencasts and videos here.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Headlines | Screencasts

WCF 3.5 and REST Part IV Screencast Published

10/9/2007 12:24:00 PM

Spaghetti Coder icon Spaghetti Code continues to march on with Part IV of the WCF and REST series being published and ready for download.  There is a video and source available to download for the WCF 3.5 portion of the series.  I even have intro theme music thanks to Jason Bock and Mike Hodnick contributing music from their http://www.sidetrackedproject.net web site.  Very cool!

 

Technorati Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Headlines | SpaghettiCode | Screencasts

Spaghetti Code - WCF and REST Part III

10/2/2007 1:38:00 PM

Spaghetti Coder icon I've posted Part III of my Getting RESTful with WCF.  This installment looks at how to use an HTTP Module and IIS 7 to get rid of the *.svc in the URIs of WCF apps hosted in IIS.  Thanks to Jon Flander's blog post on  a solution to this "problem".  I made a couple of small changes to account for how I wanted to make my solution work so hopefully I've added something helpful to Jon's work besides just reproducing it in video.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Headlines | SpaghettiCode | Screencasts

Spaghetti Code - WCF 3.0 and REST Part II

10/1/2007 9:07:00 AM
Spaghetti Coder icon

Part II of my RESTful Applications with WCF is now available.  This screencast covers deploying the WCF app to a console application and to IIS.  I'm hoping to have Part III up by the EOW and will cover building the same application as Part I but using WCF 3.5.  The series will end with Part IV covering how to remove the *.svc extension from the URI when hosting in IIS.

 

Technorati Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SpaghettiCode | Screencasts

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen

About the author

Jeff Brand Jeff Brand

This is the personal web site of Jeff Brand, self-proclaimed .NET Sex Symbol and All-Around Good guy. Content from my presentations, blog, and links to other useful .NET information can all be found here.

E-mail me Send mail


Calendar

<<  July 2008  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Twitter Updates

    Follow Me on Twitter

    XBOX
    Live

    Recent comments

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in