Salagar’s Test — A Feature to assess people in DS Fundamentals

Charles Samuel R
featurepreneur
Published in
4 min readOct 6, 2020

--

You might be thinking I messed up the heading with a well-known movie but I did not. Salagar means lightning and you will not find that translation anywhere even if you tried.

So what am I even talking about?

Salagar’s Test is a Feature that we developed during my internship at Tactlabs with my good friend Kamal as part of Featurepreneur which I will explain at the end.

This feature was to help the company assess people on how strong they are in their libraries in Data Science such as Pandas, Numpy, etc.

This had to be done in a way that was virtual and that involved creating a web app.

Image by Author

I learned Flask throughout the entire time of my internship and it's a very simple framework to develop web apps in Python. In a few words, Flask is:

A lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

Sounds great, doesn’t it? Let’s get into what we used for this web app.

  • Flask
  • Flask_Mail (To send a mail to the user of their score)
  • Gunicorn (We need a server to deploy it to Heroku don’t we?)

The web app looks something like this:

Home page of Salagar’s Test

The gist of what this web app does is:

  • The user types their name and email on the first page and that takes them to the main page which looks like this:
The Test page
  • The user then hits START which starts a 10-minute countdown within which they have to download the questions which is a Jupyter notebook with questions and you have to fill in the answers
The test is in session
  • You have to upload the questions within 10 minutes or else:
This happens

So you will not be able to submit your answers at all. Once you successfully uploaded the answer notebook, it is graded and the score is displayed on the next page:

Nice work if I do say so myself ;)

See the button at the bottom? That would mail the score straight to the mail you gave at the main page. You can choose not to do that and go straight to the home page.

The mail will arrive soon

The mail will then be sent via Flask_Mail to your mail-id from a dummy mail-id created just for this.

And that’s it. You have taken Salagar’s Test. This is mostly set with just some testing questions and later we may integrate questions related to Pandas and Numpy possibly. We are also looking to integrate Sessions to make storing each person’s score much easier.

Here is just a video showing what Salagar’s test does:

About Featurepreneur:

This was developed as a feature for Featurepreneur.

If you want to create small but great features like this be sure to check out Featurepreneur for proposals like this. Here you can get a platform to show the skills you have in ML/DS or anything else. You can learn about it over here

--

--

Charles Samuel R
featurepreneur

My primary focus has been everything Data Science and Data Analytics and now more recently NLP and its applications and other small research here and there