---
layout: post
author: csiu
date: 2017-04-23
title: "Day58: New feature"
categories: update
tags:
  - 100daysofcode
excerpt: It doesn’t make sense for users to specify an index to an arbitrary ordering
---

As user specified arguments to the parameters of the script, it doesn’t make sense for users to specify an index to an arbitrary ordering for document0 (ie. the seed document to which the most similar documents are returned).

*It’s like me asking you to pick a number and then responding with a colour. It makes no sense, especially when you don’t know the number-to-colour mappings.*

### New feature

In today’s post, I [amend my script](https://github.com/csiu/kick/commit/afb745e0fc4bd8f20756b7aa96e7f12c25b272e5) so that users specify the Kickstarter project ID (instead of using an arbitrary index) for getting document0.

<img src="{{ site.baseurl }}/img/figure/2017-04-23/day58.png" style="display:block; margin:auto; width:70%" />

The updated script is found [here](https://github.com/csiu/kick/blob/afb745e0fc4bd8f20756b7aa96e7f12c25b272e5/src/python/sim_doc.py).
