Latest Instagram Photos

Day89/100 of #100daysofmlcode :
Still trying to restructure my code.
Sigh, OOP just feels like that the set of procedures you would do in a driving exam, but is just stupid to do in 90% of situations when driving on the roads for real.
Is the property decorator restricting user inputs? Or to just identify bugs before runtime? Why not just use try, except, finally blocks? Slide some answers in my DMs please. 🤔

Day88/100 of #100daysofmlcode :
Putting some of the OOP lessons to work with some test examples.
Useful in production? We'll see. 🤔 At least I see some snippets of my own code that can be improved and simplified now.

Day87/100 of #100daysofmlcode :
Going through the usual inheritance, getters, setters, decorators, data structure models ect. If you want to get a really deep understanding of how Python works under the hood especially for larger code bases, I recommend watching James Powell's talks on YouTube.
I personally always struggle with understanding how Python imports modules (or more precisely brings a module name into scope) and its dependencies when dealing with many moving parts, as well as how it looks up variables in different namespaces.
If you have the same issues then James Powell is the man for you! 😂

Day86/100 of #100daysofmlcode :
Have decided to spend the last 2 weeks of my 100 days to strengthen my foundations in, I don't know what this is called, CS?
Knowing how to build fancy ML models is cool and all but as my programs became bigger and more functional, I started to see flaws in my logic and gaps in my knowledge of how some things work in Python.
So far, I think OOP is pretty redundant and have been very accustomed to the functional style of programming. BUT, I have been dealing a lot more with end-user apps and interfaces with my data and things have been getting messy. Who knows? Maybe i'll have a change of heart.

Day85/100 of #100daysofmlcode :
Been busy with work and resting up recently, but managed to take some time today to read a little on Q learning.
With terms like agent, policy and value, sometimes I forget that it isn't insurance 😂

Day84/100 of #100daysofmlcode :
Using gym by OpenAi to implement a simple algorithm for the very famouse CartPole problem, where we are training a machine to balance a pole on a cart by moving left and right.
Just getting used to the pipeline by implementing some logical actions, which are still a lot better than random movements.
Will proceed to use Q learning after I have gone through the math and logic.
P.s I am totally balancing it better than my machine. 😂

Day83/100 of #100daysofmlcode :
Reinforcement learning, is something new to me. It is neither supervised nor unsupervised. Instead, it uses a value function which we must maximize by teaching the machine to take optimal routes.
Unsurprisingly, the underlying math uses Markov processes and the notion of states to represent an outcome of an action, being the movement from states. I have not read on yet, but I am guessing that value must be some conditional expectation we must maximize depending on our current state at some time t. Exciting stuff.
Guess it's time to pull out my stochastic modelling notes. 🤔

Day82/100 of #100daysofmlcode :
Coded up some logic for an artificial tic tac toe player. Will buy @meow_catherine a Gucci bag if she beats it.🤣 May spend some time to do up a proper UI and change the underlying code to a reinforcement learning algorithm. Time to hit the books and math again!

Day81/100 of #100daysofmlcode :
Working on some data extraction tasks recently. If you ever need a way to extract all file paths from some root folder here it is in a simple loop. This is useful especially when extracting and combine hundreds of files.
The logic is as simple as iterating through all possible items in a path and checking if it is a file or folder. If it is a file, save the path, if not go into that folder and repeat until there are no folders left.
Better than copying hundreds and thousands of file paths eh? 🤔

@mercantyle
We started the year like many do. Goal setting and ambitious desires for 2019. One of our goals is to be more active in our marketing efforts. We resolved that our marketing would tell our story, provide creative content and add value. Our hope is our blog will slot nicely into that plan! Take a look, it’s a quick read. www.mercantyle.com/blog #mercantyle#newyear2019

1 205:05 PM Jan 10, 2019

Day80/100 of #100daysofmlcode :
Starting to plan out my next snippet for the Institute of Actuaries Australia analytics column.
Torn between RNNs and a newbie's guide to getting started with python and data science. Which should I go for?

Day79/100 of #100daysofmlcode :
Supposed to be doing something light today while I finish off some analysis for work. Ended up spending a good 3 hours playing with Vim and making an IDE out of that black box with linter and other plugins.
Shortcuts are really intuitive in Vim once you get used to them though having no mouse can be intimidating at first.
Anyway, hopefully I can get back to doing Tensorflow and/or Flask in the next couple of days if I am not swamped with work.

Day78/100 of #100daysofmlcode :
Following on the discussion I had about end user applications, I have decided to start on Flask, which is a web framework written in python.
Though I would much rather use html/css/js when doing web development, a lot of my content deals with machine learning models and general data manipulation which Python is really good at. Work uses Flask and Dash for applications as well. That being said, Flask is really simple to understand and has a gradual learning curve if you are interesting in making web applications in Python.
You know what has a steep learning curve? Vim. Yes I threw away my mouse and plan to go full Vim by the end of this year. If anyone has some Vim hacks do share.😂

Day77/100 of #100daysofmlcode :
Looks like restructuring is going to be a slow burn, but at least I have reorganized my subfolders and importing of dependencies.
The only problem is that I cannot seem to connect to GitHub Enterprise to push my changes for testing. This is going to blow up in my face tomorrow. I am quite certain. 😪
Anyway, I have recently started to use a python formatting package called "black". For those of you who are too lazy to spend time on formatting, this is perfect for you. Go check it out!

Popular Instagram Photos

Day82/100 of #100daysofmlcode :
Coded up some logic for an artificial tic tac toe player. Will buy @meow_catherine a Gucci bag if she beats it.🤣 May spend some time to do up a proper UI and change the underlying code to a reinforcement learning algorithm. Time to hit the books and math again!

Day74/100 of #100daysofmlcode :
Playing around with Tensorflow using a simple linear regression problem.
Tensorflow works by creating data flowcharts first, then filling up the nodes with operations and inputs. I can start to appreciate the low-level customizability of it, but on the other hand, it feels like 1 gradient descent function away from coding up an entire model from scratch.
Going to optimize the code using "with" statements and move on to neural network implementations. If you are completely new to python and machine learning, Keras or Sci-kit learn would be the way to go. 10/10 would not recommend for newbies. 😅

7 10611:45 AM Jan 3, 2019

Day76/100 of #100daysofmlcode :
Taking the weekend off from Tensorflow to restructure my code base. Finding good architecture is always hard. 😥

2018 has been an interesting year.
Got my associate papers done.
Published my first article on the actuaries institute.
Went for 2 conferences.
Moved to Sydney.
Played around with 4 new languages.
Built a chatbot.
Thanks @meow_catherine ❤️ for putting up with me.
Time to step up my coding game in 2019! 😎