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

Salagar’s Test

Charles Samuel R
Charles Samuel R   Follow

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

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:

Image

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:

Image

  • 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

Image

  • You have to upload the questions within 10 minutes or else:

Image

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:

Image

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.

Image

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

Image

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:

Video (opens new window)

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

Featurepreneur (opens new window)