Skip to content

Instantly share code, notes, and snippets.

@saihttam
saihttam / README.md
Created August 29, 2016 17:26 — forked from adewes/README.md
Ebay Ads - Bot. Because who wants to write messages by hand...

To use this bot:

  • Download ads_bot.py and requirements.txt.
  • Type pip install -r requirements.txt to install the requirements.
  • Fill out the required information in the Python file.
  • Ideally, create a (free) Slack account and set up a web hook to receive notifications from the bot.
  • Run the script :)
  • Relax and be ready to answer incoming calls :D
@saihttam
saihttam / gist:7241db5be80d076c1e8f
Created September 27, 2015 16:45 — forked from anonymous/gist:1c6198cd663165d2dd53
Plot ROC Curve with Cut-Off Markers
def plot_roc(y, probs, threshmarkers=None):
fpr, tpr, thresh = sklearn.metrics.roc_curve(y, probs)
plt.plot(fpr, tpr, lw=2)
if threshmarkers is None:
threshmarkers = np.linspace(0, 1, 11)
for t in threshmarkers:
k = np.abs(thresh-t).argmin()
x = fpr[k]
y = tpr[k]