Answers.Body: <p>In AI (but in general too, I believe), a simplification is that modeling is more akin to Mathematics (and related hard sciences involved, like Physics and... Computer Science), and implementation to Software Engineering.</p>
  
  <p>Let's take a concrete example, really outside of AI: Find the minimum value of a given polynomial, if it exists.</p>
  
  <p>The Mathematician will derivate the polynomial, find the zeros, and checkout convexity to find a minimum (if there is any zero). This procedure is very standard---some will say straightforward. It relies on a body of knowledge and an abstraction level that is appropriate for manual proof.</p>
  
  <p>The Software Engineer approach is actually way longer to explain, and I am going to skip it. The point is that the body of knowledge is related but different: We have to find now a step-by-step procedure for the computer to achieve the result. The Mathematician one could be implemented directly in MathLab, almost verbatim, but we <em>assume</em> MathLab. And to build MathLab, we are back to the problem of making a procedure the computer can execute. We could for example base a procedure on Euler's method to find roots (a "simple" approach that closes on roots step after step), etc.</p>
  
  <p>Simple mathematical operations can be quite complex to implement on a computer. Perhaps the most famous is <a href="https://en.wikipedia.org/wiki/Random_number_generation" rel="nofollow">random-number generation</a>. Mathematically, the concept is pure and clear. Generating an actual random-number is more elusive than it looks, to the point it calls for new <em>models</em> and new <em>implementations</em>...</p>
  
  <p>A concrete example from history: Neural networks. In the 80s and 90s, NNs were weighted graphs that could be executed on computers using graph libraries or similar foundation libs. Choosing the weights was challenging. One day the back-propagation learning model was introduced to automated the choice of weights. The model relied on a procedure dedicated to NNs, using a terminology like partial derivates, gradient descent, chain rules, etc. And later then, clever engineers created libraries to automate the back-propagation procedure. The libraries can be somewhat far from the original model, as engineers learn how to make it computable, even faster (i.e. optimization, approximations/truncations).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-08T04:44:18.407Z
Answers.LastActivityDate: 2016-08-08T04:44:18.407Z
Answers.UserDisplayName: Eric Platon
Answers.Body: <p>One good way of differentiating modelling and implementation is to consider that models occupy a much higher level of abstraction. </p>
  
  <p>To continue with the mathematical example: even though experimental mathematics might be dependent on computation, the program can be considered as one possible realization of the necessary conditions of a more abstract existence proof.</p>
  
  <p>Over the last 25 years, software engineering methodologies have become quite good at separating models and implementations, e.g. by using interfaces/typeclasses/abstract base classes to define constraints on behavior that is concretely realized by the implementation of derived classes.</p>
  
  <p>AI has always been a battle between the <a href="https://en.wikipedia.org/wiki/Neats_vs._scruffies" rel="nofollow">'neats and the scruffies'</a>. Neats tend to prefer working 'top down' from clean abstractions, 'scruffies' like to work 'bottom up', and 'bang the bits' of the implementation together, to see what happens.</p>
  
  <p>Of course, in practice, interplay between both styles is necessary, but AI <em>as a science</em> progresses when we abstract mechanisms away from specific implementations into their most general (and hence re-useable) form.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-04T16:24:09.050Z
Answers.LastActivityDate: 2016-08-04T16:24:09.050Z
Answers.UserDisplayName: NietzscheanAI
Body: <p>Quote from this <a href="https://ai.meta.stackexchange.com/a/46/8">Eric's meta post</a> about modelling and implementation:</p>
  <blockquote>
  <p>They are not exactly the same, although strongly related. This was a very difficult lesson to learn among mathematicians and early programmers, notably in the 70s (mathematical proofs can demand a lot of non-trivial programming work to make them &quot;computable&quot;, as in runnable on a computer).</p>
  </blockquote>
  <p>If they're not the same, what is the difference?</p>
  <p>How we can say when we're talking about AI implementation, and when about modelling? It's suggested above it's not an easy task. So where we can draw the line when we talk about it?</p>
  <p>I'm asking in general, not specifically for this site, that's why I haven't posted this question in meta</p>
  
Tags: <models><comparison><implementation>
Title: How to distinguish AI modeling from implementation?
UserDisplayName: kenorb
ThreadText: # How to distinguish AI modeling from implementation?
  
  (Asked by: username_0 on 2016-08-04)
  
  Quote from this [username_1's meta post](https://ai.meta.stackexchange.com/a/46/8) about modelling and implementation:
  
  > They are not exactly the same, although strongly related. This was a very difficult lesson to learn among mathematicians and early programmers, notably in the 70s (mathematical proofs can demand a lot of non-trivial programming work to make them "computable", as in runnable on a computer).
  
  If they're not the same, what is the difference?
  
  How we can say when we're talking about AI implementation, and when about modelling? It's suggested above it's not an easy task. So where we can draw the line when we talk about it?
  
  I'm asking in general, not specifically for this site, that's why I haven't posted this question in meta
  
  **Tags:** models, comparison, implementation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-08-04. Score: 4 | Accepted answer
  
  One good way of differentiating modelling and implementation is to consider that models occupy a much higher level of abstraction.
  
  To continue with the mathematical example: even though experimental mathematics might be dependent on computation, the program can be considered as one possible realization of the necessary conditions of a more abstract existence proof.
  
  Over the last 25 years, software engineering methodologies have become quite good at separating models and implementations, e.g. by using interfaces/typeclasses/abstract base classes to define constraints on behavior that is concretely realized by the implementation of derived classes.
  
  AI has always been a battle between the ['neats and the scruffies'](https://en.wikipedia.org/wiki/Neats_vs._scruffies). Neats tend to prefer working 'top down' from clean abstractions, 'scruffies' like to work 'bottom up', and 'bang the bits' of the implementation together, to see what happens.
  
  Of course, in practice, interplay between both styles is necessary, but AI *as a science* progresses when we abstract mechanisms away from specific implementations into their most general (and hence re-useable) form.
  
  
  ---
  
  ### Answer by username_1 on 2016-08-08. Score: 3
  
  In AI (but in general too, I believe), a simplification is that modeling is more akin to Mathematics (and related hard sciences involved, like Physics and... Computer Science), and implementation to Software Engineering.
  
  Let's take a concrete example, really outside of AI: Find the minimum value of a given polynomial, if it exists.
  
  The Mathematician will derivate the polynomial, find the zeros, and checkout convexity to find a minimum (if there is any zero). This procedure is very standard---some will say straightforward. It relies on a body of knowledge and an abstraction level that is appropriate for manual proof.
  
  The Software Engineer approach is actually way longer to explain, and I am going to skip it. The point is that the body of knowledge is related but different: We have to find now a step-by-step procedure for the computer to achieve the result. The Mathematician one could be implemented directly in MathLab, almost verbatim, but we *assume* MathLab. And to build MathLab, we are back to the problem of making a procedure the computer can execute. We could for example base a procedure on Euler's method to find roots (a "simple" approach that closes on roots step after step), etc.
  
  Simple mathematical operations can be quite complex to implement on a computer. Perhaps the most famous is [random-number generation](https://en.wikipedia.org/wiki/Random_number_generation). Mathematically, the concept is pure and clear. Generating an actual random-number is more elusive than it looks, to the point it calls for new *models* and new *implementations*...
  
  A concrete example from history: Neural networks. In the 80s and 90s, NNs were weighted graphs that could be executed on computers using graph libraries or similar foundation libs. Choosing the weights was challenging. One day the back-propagation learning model was introduced to automated the choice of weights. The model relied on a procedure dedicated to NNs, using a terminology like partial derivates, gradient descent, chain rules, etc. And later then, clever engineers created libraries to automate the back-propagation procedure. The libraries can be somewhat far from the original model, as engineers learn how to make it computable, even faster (i.e. optimization, approximations/truncations).
  
  
  ---
  
  