<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sandy Rogers on Medium]]></title>
        <description><![CDATA[Stories by Sandy Rogers on Medium]]></description>
        <link>https://medium.com/@sndyrgrs?source=rss-ed305bce8a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6Lcsf7x_Qmn2ipBM.jpeg</url>
            <title>Stories by Sandy Rogers on Medium</title>
            <link>https://medium.com/@sndyrgrs?source=rss-ed305bce8a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:52:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sndyrgrs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Highlighting keywords in context, with dependency parsing]]></title>
            <link>https://medium.com/@sndyrgrs/highlighting-keywords-in-context-with-dependency-parsing-95c1e6a3f334?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/95c1e6a3f334</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spacy]]></category>
            <category><![CDATA[word-embeddings]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 15:05:54 GMT</pubDate>
            <atom:updated>2020-03-18T15:05:54.635Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using SpaCy and a tiny training set to build CoachBot’s “Smart Tips”</h4><h3>The initial challenge</h3><p><strong>Show users a few pieces of content, from a library, that are relevant to the short text they’ve just written.</strong></p><p>In my context, this was building the “Smart Tips” feature for <a href="https://www.saberr.com/coachbot">CoachBot</a>. CoachBot helps managers engage and develop their teams. One headline feature is it’s support of 1:1 meetings, and Smart Tips prepares busy managers and employees to get the most from their 1:1 meeting times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_TVF95erM8g0au7EAcKNHw.png" /></figure><h4>The constraint</h4><p>CoachBot helps users to <strong>quickly</strong> co-create agendas for 1:1s, so we set out to provide smart tips <em>based on those agendas and nothing more</em>, offering guidance with no extra input needed. 🚀️</p><h3>So a classifier?</h3><p>The obvious approach to this would be to train a text-classifier model to decide what type of subject each piece of text (here, an agenda item for a meeting) refers to. Given a category, present library material tagged with the same category and job done. <a href="https://spacy.io/usage/training#textcat">Training that was pretty simple</a>, and worked reasonably well (as in, better than random) even with only tens of examples per category.</p><figure><img alt="An agenda item of “I would like your thoughs on my widget-production” is classified as “Feedback” by an algorithm" src="https://cdn-images-1.medium.com/max/1024/1*ImIZLot_pYTr3zneyPN9pA.png" /></figure><p>But this got difficult for three reasons.</p><ul><li><strong>Real-world agenda items sometimes touch on multiple topics.</strong> <em>“Work-life balance since I took over the AT-AT responsibilities”</em>: a manager and employee preparing to discuss that might want tips both on Wellbeing issues as well as Role Development.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*QGb5jxRD7P2JR24e9cJC2A.png" /></figure><ul><li><strong>People use jargon, </strong>especially in teams! To a non-team-member, <em>“is AT-AT ok?”</em> might be asking for feedback on a project, a personal issue, a conflict issue, an update on goals or something else entirely…</li><li><strong>Bad (and opaque) categorisations are confusing.</strong> No prediction model will be perfect, especially given those two challenges. But failure is worst when it is confusing. Without any indication as to <em>why</em> the classifier picked the category it did, mistakes appear not just silly but also annoying.</li></ul><h3>Smarter keywords</h3><p>This is where a keyword-based approach comes in. Instead of classifying the entire text, just look for words or phrases we definitely want to categorise.</p><p>By inspecting a small sample of data (~1000 agenda items) and using some domain knowledge, we manually created several topics that we wanted to identify, and curated a small list of seed phrases that we knew people might use for each. These are like keywords for a topic:</p><pre>{&quot;wellbeing&quot;: [&quot;stress&quot;, &quot;engagement&quot;, &quot;burnout&quot;, ...], ...}</pre><p>Of course exact matching will usually fail given free-text input, where people write naturally.</p><p>So, our predictor instead looks for any words or phrases that are <a href="https://en.wikipedia.org/wiki/Semantic_similarity"><em>semantically similar</em></a><em> </em>to the seed phrases. In other words, in other words 😉️.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJ9RWNy65Zk7hJEYtm6U4g.gif" /><figcaption>Embedding vectors for 70000 English words (projected into 3 dimensions, there are actually 200 dimensions in the model). The 10 words most similar in meaning to “goal” are highlighted. Using <a href="http://projector.tensorflow.org/">http://projector.tensorflow.org</a></figcaption></figure><p>This works using <a href="https://towardsdatascience.com/introduction-to-word-embedding-and-word2vec-652d0c2060fa">Word Embedding vectors</a>. The <a href="https://spacy.io/models">model</a> is trained on a huge corpus of text from the web, so it understands how words relate to each other. Words with similar meaning (say, “goal” and “objective”) are close to each other in the model’s vector space, so at some level it understands the meaning of what people write.</p><p>In practice, we use a couple of methods to find keywords. The two main ones, one simple and one more complex:</p><h4>Lemmatized POS-based matching</h4><p>This fast approach uses <a href="https://spacy.io/usage/rule-based-matching">SpaCy’s token-based matching</a> to look for phrases consisting of an optional pronoun and a word which shares the same <a href="https://en.wikipedia.org/wiki/Lemma_%28morphology%29">lemma</a> as a seed phrase (so <em>“your burnouts”</em> would match “burnout” from the “wellbeing” category).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4c602c06a43dbbac8dcd2b68e3915a8/href">https://medium.com/media/e4c602c06a43dbbac8dcd2b68e3915a8/href</a></iframe><h4>Semantically-similar noun chunks</h4><p>This finds looser matches, using <a href="https://spacy.io/api/doc#noun_chunks">SpaCy’s noun chunks</a> to isolate parts of the sentence and then <a href="https://spacy.io/usage/vectors-similarity#_title">similarity matching</a> to compare them to seed phrases (so <em>“I think the team’s goals are going to be hit” </em>would have a noun chunk of <em>“the team’s goals”</em> which matches a seed word of “goal” with fairly high vector-similarity.</p><h3>The context: dependency-parsing around the matches</h3><p>Our approach here is to find the part of the sentence that relates to the matching category. In our experience, the most natural-feeling collection of words to mark as categorised is the <a href="https://spacy.io/api/token#subtree">subtree</a> surrounding the match. <em>(What if the subtrees of different categories overlap? Anecdotally, whichever category turned in the longest subtree usually “felt” right.)</em></p><p>For example, take the sentence: <em>“Can I have some feedback on my presentation yesterday?”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SECFr9FIEjM4_LHx4v8d9g.png" /></figure><p>We’ve recognised that <em>“some feedback”</em> is a noun chunk relevant to the Feedback topic, but since the whole sentence has been parsed by the language model, we know that <em>“some feedback”</em> lives in the subtree <em>“some feedback on my presentation”. </em>In other words we know the object of the sentence that the category refers to.</p><p>This is useful because, to a user, they’re more interested in their specific subject than on feedback as an abstract thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DDKZ1-mee2z0hPGEWuFFaw.png" /></figure><p>This understanding helps give the tips context. And thanks to <a href="https://spacy.io/usage/linguistic-features#dependency-parse">SpaCy’s contextual dependency parsing</a>, this works even when jargon is used. <em>“Can I have some feedback on AT-AT proj?”</em> would be understood just fine, even though “AT-AT proj” has no meaning to outsiders, and is out-of-vocabulary to the language model.</p><p>In principle, knowing the objects that certain categories refer to might also be useful. For example, if we wanted to report to business leaders what the most common topics of Feedback-related agenda items were. Perhaps <a href="https://www.starwars.com/databank/darth-vader">somebody in charge</a> would want to know that everybody’s concerned about that <a href="https://www.starwars.com/databank/at-at-walker">AT-AT proj</a>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95c1e6a3f334" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 experiments in natural language understanding for CoachBot]]></title>
            <link>https://medium.com/saberr-blog/7-experiments-in-natural-language-understanding-for-coachbot-308f79843795?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/308f79843795</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[natural-language]]></category>
            <category><![CDATA[coaching]]></category>
            <category><![CDATA[hrtech]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Thu, 01 Nov 2018 10:45:10 GMT</pubDate>
            <atom:updated>2018-11-01T13:57:40.540Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://www.saberr.com/coachbot?utm_source=blog&amp;utm_campaign=nlp_experiments">CoachBot</a> is a digital coach for teams, that helps teams have the <a href="https://blog.saberr.com/what-if-ai-made-us-talk-to-each-other-more-c42f1ecf379a">conversations they should be having</a> but maybe aren’t. CoachBot’s primary value is in understanding what those conversations should be and guiding teams to have them (AKA “just ask smart questions”).</p><p>CoachBot can do that because we <a href="https://blog.saberr.com/bookreviews/home">read a lot</a> and speak to a lot of experts: lots of books, papers, articles, professors and coaches taught us the fundamentals of teamwork.</p><p>Actually asking the right questions (“what’s the worst thing your team could do?”) is simple logic for CoachBot. But understanding what people say back is much harder!</p><p>Our <a href="https://blog.saberr.com/what-if-ai-made-us-talk-to-each-other-more-c42f1ecf379a">philosophy with CoachBot</a> is that people should mostly be talking to each other rather than to a bot. Even still, there are lots of places where CoachBot can learn to be more useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*tzaK2f53fnm4_dQi82lEyA.png" /></figure><p>We’re often asked about the intelligence of CoachBot. These are 7 experiments (all using machine learning in some way) that we’ve done over the last year, prototyping new concepts for CoachBot.</p><h3>Picking an icon for every “agreed behaviour” a team writes</h3><p><a href="https://blog.saberr.com/the-foundations-of-great-teamwork-step-3-norms-5a6f0a6ad2e9">Agreed Behaviours</a> are little rules teams write for themselves. “Get out of the office”, “Over-communicate everything”, “Be on time!”. Teams can end up with quite a few of these on their Canvas, <a href="https://blog.saberr.com/how-to-embed-your-team-norms-in-day-to-day-practice-9b6018615f59">which is great</a>. But then they can look like a wall of text and go unread.</p><p>We used NLP to help. Pre-trained <a href="https://en.wikipedia.org/wiki/Word_embedding">word embeddings</a>* let us understand the meaning of each Behaviour. We compare those meanings to some pre-defined categories to select an appropriate illustration for each Behaviour. This makes the Behaviours a bit easier to scan over on the canvas, and so easier to live by!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*Y6gJSCBwr6aMENnYuQpFwg.png" /><figcaption>Categorised and iconified team behaviours</figcaption></figure><h4><strong>How?</strong></h4><p><em>* Word Embeddings turn a word into a set of numbers. Similar meaning words end up with similar numbers</em><br>Semantic similarity using <a href="https://spacy.io/">spaCy</a>. Small expert comparison dataset built through desk research. Model deployed on <a href="https://aws.amazon.com/sagemaker/">Sagemaker</a>.)</p><h3>Organising a teams’ discussion topics into a semantically-flowing order</h3><p>There are a few places where CoachBot asks everybody in a team the same questions, individually. But the team development happens when the team discuss their answers together: they learn from each other and think through ways of improving how they work together. Our Retrospectives, Agreed Behaviours and Behaviour Review sessions all work like this.</p><p>The value is in the discussion, so CoachBot doesn’t shortcut you to an answer. But we can use word embeddings to measure the similarity in meaning between every pair of submitted discussion points. That lets us organise the topics into a flow with fewer context switches and less repetition.</p><pre>An example:</pre><pre>Topics:<br>&quot;We should use the phone more&quot;<br>&quot;Email isn&#39;t as good as talking&quot;<br>&quot;We should talk about things more before doing them&quot;<br>&quot;Why don&#39;t we stick to our decisions?&quot;<br>&quot;Buy some new computers&quot;</pre><pre>Organised:<br>&quot;We should talk about things more before doing them&quot;<br>&quot;Why don&#39;t we stick to our decisions?&quot;<br>&quot;We should use the phone more&quot;<br>&quot;Email isn’t as good as talking&quot;<br>&quot;Buy some new computers&quot;</pre><h4><strong>How?</strong></h4><p>Semantic similarity using <a href="https://spacy.io/">spaCy</a> and nodal connections using <a href="https://networkx.github.io/">NetworkX</a></p><h3>Suggesting how to make a team’s purpose statement more motivational</h3><p>Aligning around a <a href="https://blog.saberr.com/the-foundations-of-great-teamwork-step-1-purpose-e787c66a7a07">clear purpose is a foundation of great teams</a>. But shouldn’t a purpose statement also be <strong>motivational</strong>? Some teams aren’t used to thinking aspirationally about their work, so this experiment looked at whether we could help them.</p><p>We combined a corpus of motivational quotes with a word usage dataset to find words that are used particularly frequently in motivation and inspirational writing. In CoachBot, every team member suggests their own ideas about the team’s purpose. Here, CoachBot picks out some of their keywords and suggests some related motivational words that might help them to craft a great purpose statement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*_kXPh_GCpbcxy6l6axiu6Q.png" /></figure><h4><strong>How?</strong></h4><p>Word frequency data from <a href="https://www.wordfrequency.info/intro.asp">COCA</a><br>Categorised quotes from <a href="https://thewebminer.com/buy-famous-quotes-database">TheWebMiner</a><br>Noun Chunks and Key Terms extraction from <a href="https://spacy.io/">spaCy</a> and <a href="https://github.com/chartbeat-labs/textacy">Textacy</a><br><a href="https://jupyter.org/">Jupyter</a>/<a href="https://ipywidgets.readthedocs.io/en/stable/">ipywidgets</a> prototype</p><h3>Generating a progress tracking interface for any “measurable result” a team write</h3><p>Having <a href="https://blog.saberr.com/the-foundations-of-great-teamwork-step-2-goals-3b1ede62d651">clearly prioritised goals</a> is important for any team, but just keeping track of them can be hard. In the “Objectives and Key Results” model of goals, Key Results are the leading indicators that an objective should be reached. In this experiment, we looked at making progress tracking a bit simpler by automatically creating a suitable progress interface for any Key Result. By dependency parsing the text, it can create a slider with units for a numeric goal, or a simple checkbox for something that looks like a done-or-not task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*QH5L45oraRl_m74Qzxry5w.gif" /></figure><h4><strong>How?</strong></h4><p>Dependency parsing using <a href="https://www.tensorflow.org/">Tensorflow</a>’s <a href="https://github.com/tensorflow/models/blob/master/research/syntaxnet/g3doc/DRAGNN.md">SyntaxNet</a>.<br><a href="https://jupyter.org/">Jupyter</a>/<a href="https://ipywidgets.readthedocs.io/en/stable/">ipywidgets</a> prototype<br><a href="https://blog.saberr.com/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2a18238676b0">Full details</a></p><h3>Converting hand-written Post-it notes into a digital Goals board</h3><p>A Goals Board is an organised canvas of… goals — a bit like a digital whiteboard. We know that digital is best for remote teams, but when people are in the same room it’s sometimes more natural to just write ideas on sticky Post-it notes (we do!). In this prototype we used a pre-trained machine vision service to read handwritten sticky notes and upload their contents straight into CoachBot’s Goals Board for that team.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fw5nSvp2SJrk%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dw5nSvp2SJrk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fw5nSvp2SJrk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b18dfc2469b59929c424a3b87e1cf003/href">https://medium.com/media/b18dfc2469b59929c424a3b87e1cf003/href</a></iframe><h4><strong>How?</strong></h4><p><a href="https://ifttt.com/do_camera">IFTTT Camera Widget</a><br><a href="http://flask.pocoo.org/">Python API</a> which calls the <a href="https://cloud.google.com/vision/docs/ocr">Google Cloud Vision API</a> and does some geometry to regroup bits of text into notes</p><h3>Generating a cartoon strip for a user’s “story of my values”</h3><p>Values are our basic motivations at home and work. One of our users’ favourite exercises is to share a story about <a href="https://coachbot.saberr.com/library/card/7xZIdbjaVygaSwK6OCmYAO">“where my values came from”</a>. Sometimes <a href="https://coachbot.saberr.com/library/card/54NFABtCY8sEucoiucow46">using a drawing</a> can be more meaningful than just writing a story. When we thought about how to do this digitally, we experimented with creating cartoon strips automatically for a given story.</p><p>To draw a cartoon, we used NLP to extract Noun Chunks (things) from the submitted story, and matched them up with the filenames of icons.</p><p>We tested it with short personal stories similar to the quirky stories people have about their values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42trWCUciGy1vIIS0JydJQ.png" /><figcaption>It works great for stories full of common things (and not so well for more niche stories!)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*3ZGSXhNDWSCXnmihnVpsig.png" /></figure><p>The most glaring problem in this was in fact the biases inherent in the language model itself. For instance, most cartoons that mentioned children end up with an icon typically associated with women and motherhood, even when the story did not reveal the sex or gender of the author.</p><p>This kind of bias (that women are associated with children more than men) is learned from the text corpus that the NLP tool is trained on: the internet.</p><h4><strong>How?</strong></h4><p>Icons from <a href="https://icons8.com/">Icons8</a> (using filenames like <em>bananas.png</em> to understand their content)<br>Word vectors and noun chunk extraction using <a href="https://spacy.io/">spaCy</a>)<br>Short personal stories for testing from the <a href="https://www.kaggle.com/ritresearch/happydb">HappyDB</a></p><h3>Measuring biases in NLP tools</h3><p>Motivated by the biases seen in the Cartoon experiment, we set out to assess the level of bias in the NLP models we use. A set of tests called the <a href="http://science.sciencemag.org/content/356/6334/183.full">Word Embedding Association Test</a> have been created to measure this learned bias. We implemented them for <a href="https://spacy.io/">spaCy</a> and found significant biases, as expected; if you’d like to run the tests on your own models, our <a href="https://gist.github.com/SandyRogers/e5c2e938502a75dcae25216e4fae2da5">code is available</a>. We’re trying to get these bias tests included in the core NLP libraries as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*U_bHEtHFliNXtPJFDSDjFg.png" /><figcaption>Oh, and I guess CoachBot will learn to make jokes about me being from Scotland</figcaption></figure><p><strong>Find out more about Saberr at </strong><a href="https://www.saberr.com/?utm_source=Blog"><strong>www.saberr.com</strong></a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F50faff%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F50faff%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d3bc1ade7ea258c45e4b1227fff55e8/href">https://medium.com/media/9d3bc1ade7ea258c45e4b1227fff55e8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308f79843795" width="1" height="1" alt=""><hr><p><a href="https://medium.com/saberr-blog/7-experiments-in-natural-language-understanding-for-coachbot-308f79843795">7 experiments in natural language understanding for CoachBot</a> was originally published in <a href="https://medium.com/saberr-blog">Saberr Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatically generating goal-progress interfaces from natural language goal statements, using…]]></title>
            <link>https://medium.com/saberr-blog/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2a18238676b0?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a18238676b0</guid>
            <category><![CDATA[okr]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Tue, 13 Mar 2018 09:29:50 GMT</pubDate>
            <atom:updated>2018-09-05T09:03:40.473Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Automatically generating goal-progress interfaces from natural language goal statements, using dependency parsing</h3><h4>This is how we’re thinking about using little bits of cleverness to make team’s lives easier</h4><h3>OKRs are a type of measurable goal</h3><p>OKRs are a popular way for companies and teams to set measurable goals that will naturally lead to progress. The basic idea is that you work to achieve a few (well thought through) measurable Key Results (KRs). By hitting those you’re more likely to achieve your broader Objective (O) than if you just stated the Objective and tried to be busy.</p><p>There are lots of OKR tools around to help. These are particularly useful when a whole company is using OKRs, in its many different teams. Together the teams’ OKRs build into achieving the company’s OKRs, in a hierarchy.</p><p>At <a href="http://www.saberr.com/">Saberr</a>, we’re building <a href="http://saberr.com/coachbot">CoachBot</a>, an app to helps teams with things like Goals and collective Purpose and everything else that makes teams work well together. With <a href="https://saberr.com/coachbot/">CoachBot</a>, we’re trying to make it very easy for a team to set some OKR-like goals — even if they’ve never done them before and even if their company isn’t (yet?) using them more broadly.</p><h3>Goal progress tools can be a pain, sometimes</h3><p>We were looking for ways to make the process of <strong>setting</strong> and <strong>reviewing </strong>OKRs fast and straight forward. Team goals are supposed to be useful, not a burden.</p><p>But this is usually how a team has to input their progress on a key result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXEmfiYvmhY4wEfCzubcAw.png" /><figcaption>Who wants to fiddle with dropdowns?</figcaption></figure><p>Key Results are usually a measurable thing — but not always, especially when people are new to them. Often people end up writing tasks, or boolean-type results (“Make the new website”, “Launch the website”).</p><h3>We can use machine learning to remove some pain</h3><p>To save people a bit of time, let’s try and automatically work out what kind of Key Result we’re dealing with, and, if it’s numerical, what the units are.</p><p>This is a nice task for Dependency Parsing: a kind of natural language processing that predicts the <strong>roles</strong> and <strong>relations</strong> of all words in a sentence.</p><p>We can do this quite quickly <a href="https://www.tensorflow.org/">Tensorflow’s</a> <a href="https://github.com/tensorflow/models/blob/master/research/syntaxnet/g3doc/DRAGNN.md">Syntaxnet</a> with pre-trained models.<br>Load up the <a href="https://github.com/tensorflow/models/blob/master/research/syntaxnet/examples/dragnn/interactive_text_analyzer.ipynb">tutorial</a>, type in our Key Result and we see a parse tree like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PNnCuTKRjUqQhWsPk4_FA.png" /><figcaption>Dependency parse tree for a key result: “We will have 1000 meetings”</figcaption></figure><p>“Meetings” is an <a href="http://universaldependencies.org/u/dep/obj.html"><em>object</em></a> referenced by “1000” which is its <a href="http://universaldependencies.org/docs/en/dep/nummod.html"><em>nummod</em></a>, or numeric modifier. So it looks like our job will be quite easy! We just need to look for <em>obj</em>s with <em>nummod</em>s.</p><p>Obviously there are some edge cases and gotchas. A few lines of code are needed to deal with KRs like “one thousand meetings”, and for complex sentences we have to keep track of the most likely actual object of the sentence — by seeing which one references the <em>root</em> of the sentence (“have”) more closely.</p><p>Handily, the root of the sentence is usually the verb when the KR is written as a boolean outcome or task.</p><p>For example if you’re in a rush and make a KR of “Ship it”, we’d parse it as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*NpQ7HJC-qUGrrxrrrL8RqQ.png" /><figcaption>Dependency parse tree for key result: “Ship it”</figcaption></figure><p>That’s handy because the action that finishes this Key Result is the root of the sentence (“ship”).</p><p>This means we can usually fallback on the sentence root as being the action for none-numeric goals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-S5AEsiHEmAkRPmgSFin2A.gif" /><figcaption>Automatically detecting numeric goals, their units and range, or boolean goals</figcaption></figure><p>This is a nice example of how pre-trained models can be used fairly immediately to solve little problems.</p><p><em>A version of this story was also published in </em><a href="https://towardsdatascience.com/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2b601289a2b9"><em>Toward Data Science.</em></a></p><p><strong>Find out more about Saberr at </strong><a href="https://www.saberr.com/?utm_source=blog"><strong>www.saberr.com</strong></a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F50faff%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F50faff&amp;image=https%3A%2F%2Fe.enpose.co%2F%3Fkey%3DdRXnS9Gplk%26w%3D700%26h%3D425%26url%3Dhttps%253A%252F%252Fupscri.be%252F50faff%252F%253Fenpose&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5ea834c2701db726d51070cff98b563/href">https://medium.com/media/e5ea834c2701db726d51070cff98b563/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a18238676b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/saberr-blog/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2a18238676b0">Automatically generating goal-progress interfaces from natural language goal statements, using…</a> was originally published in <a href="https://medium.com/saberr-blog">Saberr Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatically generating goal-progress interfaces from natural language goal statements, using…]]></title>
            <link>https://medium.com/data-science/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2b601289a2b9?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b601289a2b9</guid>
            <category><![CDATA[okr]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Wed, 07 Feb 2018 17:01:26 GMT</pubDate>
            <atom:updated>2018-02-12T10:36:14.963Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Automatically generating goal-progress interfaces from natural language goal statements, using dependency parsing</h3><h3>OKRs are a type of measurable goal</h3><p>OKRs are a popular way for companies and teams to set measurable goals that will naturally lead to progress. The basic idea is that you work to achieve a few (well thought through) measurable Key Results (KRs). By hitting those you’re more likely to achieve your broader Objective (O) than if you just stated the Objective and tried to be busy.</p><p>There are lots of OKR tools around to help. These are particularly useful when a whole company is using OKRs, in its many different teams. Together the teams’ OKRs build into achieving the company’s OKRs, in a hierarchy.</p><p>My company <a href="http://www.saberr.com/">Saberr</a> are building <a href="http://saberr.com/coachbot">CoachBot</a>, an app to helps teams with things like Goals and collective Purpose and everything else that makes teams work well together. With <a href="https://saberr.com/coachbot/">CoachBot</a>, we’re trying to make it very easy for a team to set some OKR-like goals — even if they’ve never done them before and even if their company isn’t (yet?) using them more broadly.</p><h3>Goal progress tools can be a pain, sometimes</h3><p>We were looking for ways to make the process of <strong>setting</strong> and <strong>reviewing </strong>OKRs fast and straight forward. Team goals are supposed to be useful, not a burden.</p><p>But this is usually how a team has to input their progress on a key result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXEmfiYvmhY4wEfCzubcAw.png" /><figcaption>Who wants to fiddle with dropdowns?</figcaption></figure><p>Key Results are usually a measurable thing — but not always, especially when people are new to them. Often people end up writing tasks, or boolean-type results (“Make the new website”, “Launch the website”).</p><h3>We can use machine learning to remove some pain</h3><p>To save people a bit of time, let’s try and automatically work out what kind of Key Result we’re dealing with, and, if it’s numerical, what the units are.</p><p>This is a nice task for Dependency Parsing: a kind of natural language processing that predicts the <strong>roles</strong> and <strong>relations</strong> of all words in a sentence.</p><p>We can do this quite quickly <a href="https://www.tensorflow.org/">Tensorflow’s</a> <a href="https://github.com/tensorflow/models/blob/master/research/syntaxnet/g3doc/DRAGNN.md">Syntaxnet</a> with pre-trained models.<br>Load up the <a href="https://github.com/tensorflow/models/blob/master/research/syntaxnet/examples/dragnn/interactive_text_analyzer.ipynb">tutorial</a>, type in our Key Result and we see a parse tree like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PNnCuTKRjUqQhWsPk4_FA.png" /><figcaption>Dependency parse tree for a key result: “We will have 1000 meetings”</figcaption></figure><p>“Meetings” is an <a href="http://universaldependencies.org/u/dep/obj.html"><em>object</em></a> referenced by “1000” which is its <a href="http://universaldependencies.org/docs/en/dep/nummod.html"><em>nummod</em></a>, or numeric modifier. So it looks like our job will be quite easy! We just need to look for <em>obj</em>s with <em>nummod</em>s.</p><p>Obviously there are some edge cases and gotchas. A few lines of code are needed to deal with KRs like “one thousand meetings”, and for complex sentences we have to keep track of the most likely actual object of the sentence — by seeing which one references the <em>root</em> of the sentence (“have”) more closely.</p><p>Handily, the root of the sentence is usually the verb when the KR is written as a boolean outcome or task.</p><p>For example if you’re in a rush and make a KR of “Ship it”, we’d parse it as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*NpQ7HJC-qUGrrxrrrL8RqQ.png" /><figcaption>Dependency parse tree for key result: “Ship it”</figcaption></figure><p>That’s handy because the action that finishes this Key Result is the root of the sentence (“ship”).</p><p>This means we can usually fallback on the sentence root as being the action for none-numeric goals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-S5AEsiHEmAkRPmgSFin2A.gif" /><figcaption>Automatically detecting numeric goals, their units and range, or boolean goals</figcaption></figure><p>This is a nice example of how pre-trained models can be used fairly immediately to solve little problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b601289a2b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/automatically-generating-goal-progress-interfaces-from-natural-language-goal-statements-using-2b601289a2b9">Automatically generating goal-progress interfaces from natural language goal statements, using…</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maybe startup accelerators and incubators should fund parental leave cover for their portfolio…]]></title>
            <link>https://medium.com/@sndyrgrs/maybe-startup-accelerators-and-incubators-should-fund-parental-leave-cover-for-their-portfolio-b649db181d89?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b649db181d89</guid>
            <category><![CDATA[stem]]></category>
            <category><![CDATA[gender-equality]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[maternity-leave]]></category>
            <category><![CDATA[startup-accelerators]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 13:13:35 GMT</pubDate>
            <atom:updated>2017-11-29T14:13:01.738Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Maybe startup accelerators and incubators should fund parental leave cover for their portfolio companies</h3><h4>Learning a lesson from research funding</h4><h4>Potential mothers are discriminated against</h4><p>There are lots of gender-balance problems in Science, Tech and Engineering. As everybody knows, they start with differences in STEM-subject choice in school, and end up with pay gaps and discrimination against women when hiring.</p><p>In science research jobs, women — in particular early-career researchers — are discriminated against by principal investigators who expect the women may take maternity leave. This is sometimes a conscious bias and sometimes not.</p><p>Research grant holders worry that their time- and money-limited research will be ruined by one of their key staffers taking 18 weeks off. Often they might only employ a couple of researchers and maybe have a PhD student. Making a hiring decision on these grounds is wrong and illegal. But it obviously happens; it will be a bit harder for a research leader to publish some good research if they lose 5% of their person-hours over a 3-year grant.</p><h4>Research funding bodies throw money at the problem</h4><p>Research funding bodies know this. The UK research councils and the <a href="https://medium.com/u/92e31520ece3">Wellcome Trust</a> <a href="https://wellcome.ac.uk/funding/managing-grant/maternity-paternity-adoption-or-sick-leave">pay extra money to their grants</a> for maternity cover for researchers. (So do some other funders and universities.) This means that principal researchers can hire without considering a woman’s possible parenthood. The funding agencies throw money at the problem of bias. It has added benefits too. In some cases they’ll fund a maternity coverer to join a research group for 3 months before the birthdate to learn and handover.</p><h4>Tech startups have the same problems</h4><p>Most startups are for-profit ventures. In an ideal world, they would act morally and legally and hire people without bias. They would run their businesses in a way that leaves plenty of investment or revenue money available to pay generous parental leave. But in reality that doesn’t happen and people discriminate when hiring.</p><h4>Accelerators are funding bodies</h4><p>Accelerators and incubators pick interesting ideas and teams, and fund them. They often try to educate the bias problem away by running talks and workshops for their portfolio companies — this fits with their usual stated aims of making the world a better place.</p><blockquote>From the point YC funds a startup we should put the founders’ interests first, before even our own. … empirically the benefits of benevolence are greater than the costs. <a href="http://www.ycombinator.com/principles/">(http://www.ycombinator.com/principles/</a>)</blockquote><p>But perhaps they should borrow the maternity cover idea too, and pay some of the problem away.</p><h4>They could probably afford to pay parental leave cover</h4><p>Imagine this policy:</p><blockquote>For our portfolio companies, we will pay to cover 18 weeks of a mother or partner’s parental leave at 100% of their salary. This ends when they’re aquired or IPO, or 3 years after we invest.</blockquote><p>Let’s say a successful startup has this journey:</p><ul><li>year 1: 10 employees, joins accelerator</li><li>year 2: 20 employees</li><li>year 3: 30 employees</li></ul><p>At 30, they should be looking to hire an HR person internally whose impact should definitely include reducing bias in hiring and developing great people policies. Accelerators could demand this.</p><p>The <a href="https://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/vitalstatisticspopulationandhealthreferencetables">UK general fertility rate</a> (live births per 1,000 women aged 15–44 per year) is about 6%. Hopefully the portfolio companies don’t discriminate and so hire people older than 44 too. And our fictional accelerator is nice so they pay this cover for mother’s partners too. So roughly 5% of their employees will need 18 weeks of cover each year. According to <a href="https://techcrunch.com/2014/10/28/uk-startups-failing-to-explain-equity-to-employees/">TechCrunch/Seedcamp</a>, median salary in each of those years would be £31k, £47k, £64k.</p><p>So roughly, it’d cost the accelerator £5k in year 1, then £16k and £33k.</p><p>That means a typical cost of £54k for a startup which scales quite quickly and doesn’t fail or exit. Platforms I’m familiar with like <a href="https://medium.com/u/ce257490d611">Seedcamp</a> and <a href="https://medium.com/u/cb8adc841a29">Y Combinator</a> fund pre-seed companies with ~£100k for ~7% equity, so £54k is obviously a meaningful chunk of money relative to that. <em>(The company I work for, </em><a href="https://medium.com/u/423a2a4a5615"><em>Saberr</em></a><em>, is a </em><a href="https://medium.com/u/ce257490d611"><em>Seedcamp</em></a><em> company).</em></p><p>But these “expensive” companies that scale to 30 employees and £64k median salaries are probably the ones who end up giving the highest ROI to the accelerators’ investors. If they end up using this money, they’re fairly likely to pay it back in a valuable exit. And good parental leave policies tend to increase hiring of women, which in such a man-dominated industry almost guarantees better business outcomes and higher ROI. Accelerators would be throwing good money after good by doing this.</p><p>Even a maternity-only version would help, and that would be very cheap at the start since women account for only about a fifth of tech startup employees.</p><p>I think “ethical” accelerators and VCs should be doing some form of this for all the companies they invest in at pre-seed and seed stage.</p><p><em>Update: In an earlier version I used the conception rate rather than the general fertility rate. The GFR should be closer to the actual rate of maternity leave.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b649db181d89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Formula One has an incentive problem called Qualifying]]></title>
            <link>https://medium.com/@sndyrgrs/formula-one-has-an-incentive-problem-called-qualifying-4d080f93dc4b?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d080f93dc4b</guid>
            <category><![CDATA[formula-1]]></category>
            <category><![CDATA[motorsport]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[f1]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Tue, 12 Sep 2017 08:13:34 GMT</pubDate>
            <atom:updated>2017-09-12T08:13:34.533Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>“There’s no point in old boys like me going round, saying ‘Oh, it was so much better in the old days’, because they don’t have the old days, they’ve got it as it is now.”<br>— Patrick Head, in ‘Lunches with Legends’ by Maurice Hamilton</blockquote><p>There are lots of complaints about lots of areas in modern Formula One. But really, F1 is very simple. It should be the world’s best drivers having an all-out race on a Sunday. And here we have a problem: the racing doesn’t really happen on race-day Sundays, it happens in qualifying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_QH-PDoZW9DyvcRtW0cQA.jpeg" /><figcaption>Not worth trying.</figcaption></figure><h4>How F1 teams are incentivised</h4><p>It’s expensive to run an F1 team: championship-competitive teams spend around €500m per season, and that money needs to be recouped by racing. (Back-of-the-grid teams have a budget about a fifth of that.) The sport as a whole makes getting on for €1bn each year and gives about 2/3 of that to the teams. The allocation is not entirely fair: Ferrari and Williams have long-standing sweetheart deals, and other teams reach their own agreements with FOM, meaning that Ferrari were awarded the biggest share of the pot this year despite coming third in the constructors’ championship last year.</p><p>But roughly, teams are incentivised to:</p><ul><li>create themselves a heritage status in the sport,</li><li>score lots of championship points.</li></ul><p>And here’s the problem: championship points aren’t won on Sundays, they’re won on Saturdays.</p><h4>What the data show</h4><p>I looked at data from every historical F1 race and championship. Points systems, qualifying setups, engine formulae, aero restrictions have all changed in that time. So, I calculated a simple metric:</p><blockquote>for each race, what fraction of points awarded after the race were not “already won” by cars’ qualifying positions?</blockquote><p>For example:<em> if a car qualifies 4th in a 2017 weekend, they’ve “already won” 12 points on Saturday. If they finish the race in 3rd, they’ve “newly won” an extra 3 on race day. If that’s the only position change in the Top 10, that’s 3 out of 101 available points that are newly won on Sunday — 3%.</em></p><p>This race-day points fraction seems to me a good proxy for a team boss asking:</p><blockquote>“how much incentive is there for me to make a good <strong>racing</strong> car this season, vs. a good <strong>qualifying</strong> car?”.</blockquote><p>This metric has been decreasing for 35 years, through five different engine eras. There has never been less incentive for F1 teams to make an overtake-capable car.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUdvB4n7RBaqMoTWB6_gRQ.png" /><figcaption>There has never been less incentive for F1 teams to make an overtake-capable car.</figcaption></figure><h4>How did this happen?</h4><p>Well imagine you were running an F1 team in the mid 1980s. You were busy catching up with the revolution of turbo-chargers taking over from the dominant Ford DFV. The sport was allowing you to produce qualifying-spec engines with &gt;1300 bhp. You probably looked at some statistics and thought:</p><blockquote>“Hmm, 60% of the points people are winning are based on their grid position, and we can go nuts with power and ground effect traction and everything, so sod race day”.</blockquote><p>You (and everybody else) would tune your cars increasingly to maximise grid positions, and therefore increasingly sacrifice race-day ability, and so Sundays would become ever less of a points-winning opportunity; and so the cycle would continue. If that’s how it happened, then we’re still in that cycle. <strong>And now in 2016 and 2017, 74% of the points allocated were determined by the qualifying grids.</strong></p><h4>Things aren’t all bad</h4><p>The sport progresses in technology, and reliability and consistency are high in this era. In fact, in a way the competitiveness of the field is better than ever. I calculated the average race-time separation between cars through F1 history. In the modern era, cars usually finish races just a few seconds apart from one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHMecKf82emK3iXh4fND6A.png" /><figcaption>The solid line is the race duration split for the whole field, the dashed line for the podium</figcaption></figure><p>But parading a few seconds apart is a very different spectacle to overtaking one another for points.</p><h4>What to do</h4><p>F1 has tried a lot of ideas to make racing better: different engine formulae, cost-restrictions, aero limits, single tyre manufacturers, DRS, the overtake button… But maybe we just need to look at the incentive structure, and flip the importance ratio of qualifying : race.</p><p>We need to make it more probable that a good race-day performance will turn into a good haul of championship points. That’s the basics. But the sport has never really attempted to achieve that by making it <strong>less probable</strong> that a good qualifying performance will lead to points.</p><p>Formula 2 has a go at this by having two points-paying races, with a grid reversal for the second race. The maximum points haul involves qualifying with the fastest lap, winning a race from pole with a fastest lap thrown in, and then <em>overtaking your way from 8th on the grid to lead again</em> in the sprint race, while setting another fastest lap.</p><p>British Touring Cars have a slightly-randomised grid reversal for the third race in each weekend, and a ballast allocation to handicap leaders.</p><p>These are of course very artificial systems, and I’m not sure F1 should or would adopt them.</p><p>There are (perhaps?) more palatable options though. For example we could have <strong>no qualifying</strong>, and each race grid would be set by championship order. The only incentive therefore is to do well in races. Empty Saturdays could be filled with:</p><ul><li>points-paying fastest-lap sessions which don’t so directly impact the race grid.</li><li>a double-bill with Formula E races (once they can race on F1 circuits, or on street circuits in the nearby host city).</li><li>a rookie championship, where F1 cars are shared with a separately-scored rookie championship for drivers with less than 2 years’ F1 experience. Who knows?</li></ul><p>Or we could just have randomly allocated grids, fresh each race.</p><p>However it is done, there is a simple enough message: the sport could choose to make (all) teams race for all of their points on Sundays. Presumably they’d soon figure out how to make the cars follow closely and overtake once their pay-cheques depend on it 100% (instead of 26%). The teams sit on the Sporting and Technical Working Groups, so it’s not like the rules would get in their way for very long either.</p><p><em>I used data from this excellent resource </em><a href="http://ergast.com/mrd/db/"><em>http://ergast.com/mrd/db/</em></a></p><p><em>The analysis code is available on Github, </em><a href="https://github.com/SandyRogers/F1-points-analysis"><em>https://github.com/SandyRogers/F1-points-analysis</em></a><em>, to do with as you wish.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d080f93dc4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should AI take sides?]]></title>
            <link>https://medium.com/saberr-blog/should-ai-take-sides-64286c7bd70d?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/64286c7bd70d</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Tue, 04 Apr 2017 15:02:33 GMT</pubDate>
            <atom:updated>2017-04-04T15:02:33.296Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bots for collectives instead of bots for individuals</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GX74JaV1cJITRP1M-xFR0Q.png" /><figcaption>And so, Curiosity killed the chat</figcaption></figure><h4>The laws of robot ethics</h4><p>The most well known ideas about robot ethics come from science fiction. Asimov wrote about three laws:</p><blockquote>1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.</blockquote><blockquote>2. A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.</blockquote><blockquote>3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.</blockquote><p>These laws have been widely explored in sci-fi. Usually a robot character fails to obey some of them, or a human creator fails to foresee the outcomes of them. In real life, I expect few researchers of robotics, AI and ethics would say these fictional laws are very influential on their work. But ethics and standards bodies are now drafting rules to make sure our artificial creations behave ethically.</p><p>The UK’s engineering research council EPSRC had researchers draft a set of <a href="https://www.epsrc.ac.uk/research/ourportfolio/themes/engineering/activities/principlesofrobotics/">Five Principles</a> for the makers and users of robots. They are less inspiring than Asimov’s laws. But they do set some important principles around responsibility and accountability. People design, make, own and use robots, so it’ll be people who face the law when a robot does something naughty.</p><h4>The Zeroth law: robots serving humanity</h4><p>It gets more interesting when we think about bots interacting with <em>groups </em>of people. To his Three Laws, Asimov added a fourth (the Zeroth law, because it was deemed more important than the others):</p><blockquote>A robot may not harm humanity, or by inaction, allow humanity to come to harm.</blockquote><p>“Four-law compliant” robots are there to serve all humanity, and can hurt an individual person if necessary to protect humanity. It was easy when robots only had to know that they only help people at the expense of robots. Now we’re dealing with robots making ethical choices about the good of one person vs. the good of another.</p><h4>Functional imagination: taking sides for a better future</h4><p>Making these ethical choices relies first on a bot having the ability to predict various possible futures. Then they have to make ethical judgments about which future is most desirable. Finally they have to act fast enough to make the more desirable future more likely. (Or of course you could <a href="https://www.netflix.com/gb/title/80105699">time-travel back to fix it later</a>.)</p><p>I heard this ability be referred to as “functional imagination” last week (in a talk by Professor of Robot Ethics, <a href="http://people.uwe.ac.uk/Pages/person.aspx?accountname=campus%5Ca-winfield">Alan Winfield</a>, at the New Frontiers in Robotics meeting in Cambridge). He showed an experiment where one robot tries to save two “humans” from falling into a hole. Usually the robot fails because it is racked with indecision and dithers. The robot had no intention to take a side and commit to saving only one person. Usually it ended up with the worst possible outcome for humanity, and the individual humans, as a result. So surely, on occasion, it must be better for a robot to take a side, rather than to dither and help nobody?</p><h4>There are no responsible robots</h4><p>Just before Alan Winfield’s talk, <a href="http://noelsharkey.com/">Noel Sharkey </a>made a nice point:</p><blockquote>“there are no responsible robots, only responsible people”.</blockquote><p>Somebody is responsible for the consequences of their robot taking sides in this dilemma. That’s true even if they’ve set up the bot to make a random decision in those cases.</p><p>This can all get hard in practice. Robots are products and (should) come with the same privacy assurances as non-robotic, non-AI products. Bots clearly need to be conservative and intentional in what information they share. Makers of a bot and multiple users of a bot are responsible for their bot’s decisions. But how can they gather enough information about the bot’s decision to have control over it?</p><p>All together, we’re asking</p><ol><li>Bots to make ethical (-like) decisions affecting people</li><li>Bots not to divulge private information they’re using to make those decisions</li><li>People to be responsible for those decisions regardless.</li></ol><h4>A collective purpose</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6qz3wXc-x42YAr9gUJtGBQ.png" /><figcaption>Flower power robot. Adapted from an <a href="https://commons.wikimedia.org/wiki/File:ASIMO_Conducting_Pose_on_4.14.2008.jpg">original ASIMO photo by Vanillase</a> (Own work) [CC BY-SA 3.0 (<a href="http://creativecommons.org/licenses/by-sa/3.0">http://creativecommons.org/licenses/by-sa/3.0</a>)], via Wikimedia Commons.</figcaption></figure><p>Sometimes we can simplify. There are many cases where a bot should serve more than one person, but fewer than 7 billion people! Their creators and users have a clear purpose in mind, and I think that might be the rescue here.</p><p><a href="http://www.saberr.com/product/coach">Bots for teams</a>, household bots for families, self-driving buses… each needs to act in the interests of many people. Each has a collective purpose, which is generally aligned with the interests of everybody in the collective (succeed at work, be comfortable at home, don’t have a car crash).</p><p>There are important things to consider in how a “collective-purpose” bot should behave. These bots will, sometimes, act not in the interest of an individual. They might call me out for not finishing a task when I said I would. They might make me late by insisting I have to buy the milk this morning. Or they might skip my bus-stop if it’ll help avoid a crash.</p><p>For these collective-purpose bots to succeed, we’ll need them to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*uET8lqQOW7CIXhEZ7IAr2Q.png" /></figure><p>Be outrageously clear about what their purpose is, and who they share their collective purpose with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JyUgG51F_CPGb1nt5SYe0A.png" /></figure><p>Avoid interacting with people not in the collective. If their interests aren’t aligned with the shared purpose, the bot can’t know it’s helping them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*HahkOoFO8cBlB30fJkr5IQ.png" /></figure><p>Be clear when they switch to serving an individual purpose (helping you directly to achieve goals not in the interest of the collective). <strong>Be even more clear when they switch back.</strong></p><p>For example, your household bot should be clear that it’s purpose is to make sure everybody does the chores and not to enforce one person’s house-rules. It probably shouldn’t tell off the Postman for being late. It should talk to you privately and understandingly about how to make time in your crazy calendar to do the chores; but in public it should continue nagging you to do them.</p><p>Some basic principles like these can stop these bots from needing to pick sides. They’ll mean bots can legitimately claim to be acting in the interests of the collective.</p><p>Groups of people sharing a purpose need to be responsible for making this happen. Their collective-purpose bots need to be answerable to them. This means bots should help groups to see their collective options and how they might turn out. But ultimately, they’ll tell the people to make some of the hard decisions. Including whose side to take.</p><p><em>Meet Saberr’s bot: Coach, the world’s first digital Coach for teamwork. Learn more about it and request a demo at </em><a href="http://www.saberr.com/"><em>www.saberr.com</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*AezyguurI2E_dC2amM1ztw.png" /><figcaption>Saberr Coach</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64286c7bd70d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/saberr-blog/should-ai-take-sides-64286c7bd70d">Should AI take sides?</a> was originally published in <a href="https://medium.com/saberr-blog">Saberr Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Saying “you need people to interpret data” is fine, until AI becomes less terrible]]></title>
            <link>https://medium.com/saberr-blog/saying-you-need-people-to-interpret-data-is-fine-until-ai-becomes-less-terrible-b2df6b9ec034?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2df6b9ec034</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[team]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Fri, 23 Sep 2016 16:16:02 GMT</pubDate>
            <atom:updated>2016-09-23T16:16:02.996Z</atom:updated>
            <content:encoded><![CDATA[<p>When an event popped up at the Royal Institution called “<a href="http://www.rigb.org/whats-on/events-2016/september/public-operating-at-the-boundaries-the-science-and-art-of-high-performing-teams">The science and art of high-performing teams</a>”, we obviously had to go!</p><p>It was billed as a multi-disciplinary discussion on marginal gains and the never-ending chase of elite performance.</p><p>The opening discussion was a delight for us, because they made all the arguments that we usually have to make ourselves:</p><ul><li>teams make a significant contribution to the performance of many organisations and their collective performance is critical</li><li>performance analysis (and therefore improvement) has had a big injection of progress recently. The reason for that is availability of data.</li></ul><p>But then I felt the conversation stalled.</p><p>They arrived at a consensus that:</p><p><em>understanding people needs a mixture of data and people to interpret that data. Or at least, you need that mix to take any smart action based on what you’ve learned.</em></p><p>It’s an easy escape to say that. It feels right. It feels comfortable, those in control are still people, and still able to override the data if they need to. It makes sense when you think how limiting the technology in our phones is… <em>“God, we better still be in control because Siri is a moron”.</em></p><p>But this ignores the future. Many people (and a whole load of investment dollars) are betting that in the next few years we’ll iterate towards artificial intelligences which, to be useful and achieve the dreams of their creators, better be sufficiently human-like to not make us go mad with frustration.</p><p>As we put more AI in more places, physically or otherwise, we expect more from it. Witness the <a href="http://www.theverge.com/2016/9/21/12996170/google-allo-review-assistant-messaging-chat-app">early reviews</a> of Google’s latest general-purpose AI, Google Assistant. Now Google’s got itself into your chat conversations, you’ll try and talk more naturally to it/he/she and expect her to know what you’re on about. And you’ll be unforgiving if she doesn’t.</p><p>Creativity, intuition, interpretation and other big words we like to apply only to people are going to be checked off by robots if we’re ever to make them less annoying.</p><p>So sure, it feels cosy knowing that they need us. But we want them to help us, and we want them to be mildly less infuriating each day. And so the more futile our protectionist claim to <em>“we are the only intellectuals”</em> becomes.</p><p>You know that dream you’ve been sold, where you say <em>“Gees, I could sure do with a holiday”</em>, and your phone figures out just what you want (hint-hint: it isn’t just the destination I last googled), what you can afford (not just 33% of my bank balance), and when your work is going to allow you to take it (not just when my calendar is blank)… well that same dream is going to be able to hear your team say <em>“Gees, we haven’t done ANYTHING this month”</em> and figure out why.</p><p>A lump of data isn’t information without knowledge and context. And information doesn’t lead to action without some convincing. Right now that all means people are just super-powered by having data to make their decisions. But that will change one day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2df6b9ec034" width="1" height="1" alt=""><hr><p><a href="https://medium.com/saberr-blog/saying-you-need-people-to-interpret-data-is-fine-until-ai-becomes-less-terrible-b2df6b9ec034">Saying “you need people to interpret data” is fine, until AI becomes less terrible</a> was originally published in <a href="https://medium.com/saberr-blog">Saberr Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run Metabase on Dokku]]></title>
            <link>https://medium.com/@sndyrgrs/how-to-run-metabase-on-dokku-dffdfe1ef442?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dffdfe1ef442</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[dokku]]></category>
            <category><![CDATA[metabase]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Sun, 13 Dec 2015 12:33:47 GMT</pubDate>
            <atom:updated>2015-12-13T12:34:26.687Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>An open source analytics dashboard on an open source platform-as-a-service</h4><p><a href="http://www.metabase.com/">Metabase</a> is</p><blockquote>the easy, open source way for everyone in your company to ask questions and learn from data.</blockquote><p><a href="http://dokku.viewdocs.io/dokku/">Dokku</a> is:</p><blockquote>The smallest PaaS implementation you’ve ever seen<br>Docker powered mini-Heroku in around 200 lines of Bash</blockquote><p>Metabase provide some one-click setups for Heroku, AWS, and Docker. But not Dokku!</p><p>Setting it up on Dokku is super easy though, if you’ve already got Dokku set up.</p><pre>mkdir metabase<br>cd metabase</pre><pre>curl <a href="http://downloads.metabase.com/v0.13.1/metabase.jar">http://downloads.metabase.com/v0.13.1/metabase.jar</a> &gt; ./metabase.jar #download the .jar version of metabase<br># Check <a href="http://www.metabase.com/">http://www.metabase.com/</a> for latest verison</pre><pre>echo &quot;web: java -jar metabase.jar&quot; &gt; Procfile <br># makes a Procfile so Dokku knows how to run the jar</pre><pre>git init #you use Git to deploy to Dokku<br>git add metabase.jar<br>git add Procfile<br>git commit -m &quot;Making metabase run on Dokku&quot;</pre><pre>ssh dokku@where.your.dokku.is.com apps:create metabase #make a new dokku app<br>ssh dokku@where.your.dokku.is.com config:set metabase MB_JETTY_PORT=5000<br># Metabase by default serves on port 3000; Dokku expects 5000 so we set that environment variable to make both happy</pre><pre>git remote add dokku dokku@where.your.dokku.is.com:metabase<br>git push dokku master #deploy metabase</pre><p>And that should do it! Check</p><pre>ssh dokku@where.your.dokku.is.com logs metabase</pre><p>To see if it deploys okay. It’ll take a minute or so to initialise.</p><p>Then browse to: <a href="http://metabase.where.your.dokku.is.com/">http://metabase.where.your.dokku.is.com</a> and off you go :)</p><p>If you have problems with Java, just</p><pre>ssh root@where.your.dokku.is.com</pre><p>and then run</p><pre>java -version</pre><p>to see what JVM you have. If it doesn’t look groovy…</p><pre>apt-get install openjdk-8-jre</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dffdfe1ef442" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linking user databases and usage analytics, to get metrics on your service’s group accounts rather…]]></title>
            <link>https://medium.com/saberr-blog/linking-user-databases-and-usage-analytics-to-get-metrics-on-your-service-s-group-accounts-rather-cb3356f54f40?source=rss-ed305bce8a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb3356f54f40</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Sandy Rogers]]></dc:creator>
            <pubDate>Fri, 11 Dec 2015 15:39:38 GMT</pubDate>
            <atom:updated>2018-03-26T11:25:26.737Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Linking user databases and usage analytics, to get metrics on your service’s group accounts rather than individuals</h3><h4>Using Segment.io’s new Data Warehouses, AWS RDS Postgres and Redshift, and AWS Data Pipeline</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqvOdcmBzGUvfkCwPd2Vxg.png" /><figcaption>You have a bunch of companies using your service. Your user accounts information (“who currently belongs to which company”) is stored in some relational database. Your product usage analytics are piped into some cloud analytics provider. How do you join them up?</figcaption></figure><h3>The problem</h3><p>You’re part of a business who want to make data-driven decisions about how to improve their SaaS product. It’s your job to provide great analytics to help with that. But wait! your product is not B2C, it’s B2B and all of your most important metrics are things like</p><ul><li>% of companies on paid plan</li><li>% of companies with daily usage by at least one administrator</li></ul><p>and other quite <a href="http://www.slideshare.net/dmc500hats/startup-metrics-for-pirates-long-version">Piratey</a> things like that.</p><p>Oh no! your standard product analytics in Google Analytics or Heap or whatever only show you what <strong>single persons</strong> did, not what <strong>groups of people</strong> did.</p><p>How do you proceed?</p><h3>First, our setup</h3><h4>(so you know if this is relevant to you)</h4><p>We use</p><ul><li>an <a href="https://aws.amazon.com/rds/postgresql/">AWS RDS Postgres</a> database to hold user data: who they are, which companies they’re part of, their roles in those companies, etc.</li><li><a href="https://segment.io/">Segment.io</a> to receive usage analytics (from front and backend code), who then format and send on the events to whichever cloud analytics we like that week (say, Google Analytics or <a href="https://keen.io/">keen.io</a> or <a href="https://heapanalytics.com/">heapanalytics.com</a>).</li></ul><p>All pretty normal.</p><h4>But what about the groups magic?</h4><p>Somehow you need to link the “current state” info about people and groups from Postgres to the “actions” info from analytics.</p><p>If you’re using a similar setup to us, segment.io have two awesome things to help you out:</p><ol><li>Segment’s <a href="https://segment.com/docs/spec/group/"><strong>.group()</strong></a> call to link a user with an identified for the (or each) group/company that the user is associated with</li><li>Segment’s just-launched <a href="https://segment.com/warehouses">Data Warehouses</a> which let you get all your analytics into a nearly-no-management-needed Postgres or <a href="https://aws.amazon.com/redshift/">AWS Redshift</a> data warehouse</li></ol><h3>Segment on Twitter</h3><p>Announcing Segment Warehouses - Load web and mobile data into your SQL database in minutes http://buff.ly/1lShMEr pic.twitter.com/9nF6EiR2gi</p><h3>All about that warehouse, <a href="https://www.youtube.com/watch?v=7PCkvCPvDXk">no trouble</a></h3><p>In fact for us, the new Data Warehouses have pretty much eliminated our need for using .group() at all, because we can just get our analytics data and our user data near enough to each other that single SQL queries can join between them.</p><p>One option is that you let Segment pipe your analytics into the same Postgres database as your user data (in its own table space hopefully, folks).</p><p>Another (and our chosen) option is to let Segment pump analytics into Redshift, and then to use an <a href="https://aws.amazon.com/datapipeline/">AWS Data Pipeline</a> to also copy <strong>just the user data you need for analytics </strong>into the same Redshift database. This felt better to me, because you can (likely) avoid copying any tables to Redshift with personal information in. For example: if you only need to be able to measure <em>“which companies had an administrator login every day last month”</em>, you might only need to copy your <strong>companyperson</strong> relationship table, which might look like this:</p><pre>person_uuid  company_uuid  role_in_company<br>------------------------------------------<br>aa-11-aa     ff-55-ff      ADMINISTRATOR<br>ab-12-df     fd-98-cv      MEMBER<br>...          ...           ...</pre><p>This data is no more sensitive than what you’re already sending into your analytics, which should make you feel warm and fuzzy.</p><h4>Setting it up</h4><p>Setting up Redshift is <a href="https://help.segment.com/hc/en-us/articles/206579173-Setting-up-Amazon-Redshift">fairly straight forward</a> if you’re already using AWS, and getting Segment to talk to it is a doddle.</p><p>Getting data out of your RDS Postgres database and into Redshift was a bit trickier for me, because AWS Data Pipelines doesn’t have a readymade template for you. (You could probably just do some shortcut hack using pg_dump and pg_restore, but data pipelines are fun :| so let’s continue.)</p><p>You could start your data pipeline with this <a href="http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-template-redshiftrdsfull.html">MySQL template</a> pipeline and edit it — that’s what I went for. Getting that to work with Postgres instead of MySQL just requires adding an extra Data Node of JdbcDatabase type, and then having a second data node of SqlDataNode type, with the Jdbc type as its input. Like this:</p><pre>{<br>  &quot;objects&quot;: [<br>      ...,<br>      {<br>        &quot;schedule&quot;: {<br>          &quot;ref&quot;: &quot;DefaultSchedule&quot;<br>        },<br>        &quot;database&quot;: {<br>          &quot;ref&quot;: &quot;DatabaseId_poiuy&quot;<br>        },<br>        &quot;name&quot;: &quot;SrcRDSPostgresTable&quot;,<br>        &quot;id&quot;: &quot;DataNodeId_asdfg&quot;,<br>        &quot;type&quot;: &quot;SqlDataNode&quot;,<br>        &quot;table&quot;: &quot;#{myRDSTableName}&quot;,<br>        &quot;selectQuery&quot;: &quot;SELECT * FROM #{myRDSTableName}&quot;<br>      },<br>      {<br>        &quot;connectionString&quot;: &quot;#{myRDSJdbcConnectStr}&quot;,<br>        &quot;databaseName&quot;: &quot;#{myRDSDatabaseName}&quot;,<br>        &quot;*password&quot;: &quot;#{*myRDSPassword}&quot;,<br>        &quot;name&quot;: &quot;RDSPostgresStage&quot;,<br>        &quot;id&quot;: &quot;DatabaseId_poiuy&quot;,<br>        &quot;type&quot;: &quot;JdbcDatabase&quot;,<br>        &quot;jdbcDriverClass&quot;: &quot;org.postgresql.Driver&quot;,<br>        &quot;username&quot;: &quot;#{myRDSUsername}&quot;<br>      },<br>      ...<br>  ],<br>  ...</pre><p>The Create Redshift Table activity in that template also assumes you’re using a MySQL database. I took the easy way out of that and just deleted the create table activity altogether, and added some simple</p><pre>CREATE TABLE IF NOT EXISTS whatever (…) </pre><p>sql to the CreateTableSQL parameter of my Redshift source, copied from the definitions in my Postgres database.</p><blockquote>It took me about a day of experimenting to figure out AWS data pipelines and get one up and running how I needed it.</blockquote><h4>And then just like magic…</h4><p>You can fire up your PostgreSQL app of choice (mine: <a href="https://www.jetbrains.com/dbe/">https://www.jetbrains.com/dbe/</a>) and run some lovely Joins across your data:</p><pre><strong>SELECT </strong>company_uuid<br><strong>FROM </strong>userdata.companyperson <strong>AS </strong>userdata<br>  <strong>INNER JOIN </strong>analytics.pressed_big_button <strong>AS </strong>analytics<br>    <strong>ON </strong>userdata.person_uuid = analytics.user_id</pre><p>And there you have it: you’re just a few sql queries away from those account-level analytics you need for your SaaS metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2v6HMDPrIY1ZkuH3aCR1Jw.png" /><figcaption>And then it’s probably best to leave the bad interpretation of your analytics to somebody else. <a href="http://dilbert.com/strip/1996-04-17">(c.f. Dilbert)</a></figcaption></figure><h3>Thanks</h3><p>I guess I’m bad at drawing, so:</p><p>Person icons made by <a href="http://www.freepik.com/">http://www.freepik.com</a>, <a href="http://www.flaticon.com/authors/elegant-themes">http://www.flaticon.com/authors/elegant-themes</a>, <a href="http://www.flaticon.com/authors/icomoon">http://www.flaticon.com/authors/icomoon</a> from <a href="http://www.flaticon.com/">http://www.flaticon.com</a> <a href="http://www.flaticon.com/">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/">http://creativecommons.org/licenses/by/3.0/</a> CC BY 3.0</p><p>Company logos made by <a href="http://logotypemaker.com/">http://logotypemaker.com</a> | licensed by <a href="http://creativecommons.org/licenses/by/3.0/">http://creativecommons.org/licenses/by/3.0/</a> CC BY 3.0</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F50faff%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F50faff&amp;image=https%3A%2F%2Fe.enpose.co%2F%3Fkey%3DdRXnS9Gplk%26w%3D700%26h%3D425%26url%3Dhttps%253A%252F%252Fupscri.be%252F50faff%252F%253Fenpose&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5ea834c2701db726d51070cff98b563/href">https://medium.com/media/e5ea834c2701db726d51070cff98b563/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb3356f54f40" width="1" height="1" alt=""><hr><p><a href="https://medium.com/saberr-blog/linking-user-databases-and-usage-analytics-to-get-metrics-on-your-service-s-group-accounts-rather-cb3356f54f40">Linking user databases and usage analytics, to get metrics on your service’s group accounts rather…</a> was originally published in <a href="https://medium.com/saberr-blog">Saberr Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>