<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ask Ghassem - Recent activity in Artificial Intelligence</title>
<link>https://ask.ghassem.com/activity/artificial-intelligence</link>
<description>Powered by Question2Answer</description>
<item>
<title>Edited: How to use Genetic Algorithm to optimize a function?</title>
<link>https://ask.ghassem.com/1010/how-to-use-genetic-algorithm-to-optimize-a-function?show=1010#q1010</link>
<description>&lt;p&gt;Assume the function is defined as $f(x,y)=x^2+y^2-4xy$, and $1\leq x \leq 4,1\leq y \leq 4$. &amp;nbsp;The Genetic Algorithm is selected&amp;nbsp;to maximize the function. If the first population for pairs of $(x,y)$&amp;nbsp;is defined as $S=\{A=(1,2), B=(2,1), C=(2,2), D=(2,3), E=(3,1) \}$.&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;a) &lt;/strong&gt;Calculate the fitness of each of individuals (A,B,C,D,E) in population if:&amp;nbsp; &amp;nbsp;$\text{fitness function}=f(x,y)$&amp;nbsp;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;b)&lt;/strong&gt; Calculate the probability of each individual&amp;nbsp;and sort them in descending order. Which individual has the maximum fitness (probability)? $p_{i}=\frac{f_{i}}{\sum_{j=1}^{N} f_{j}}$&lt;br&gt;
&lt;strong&gt;c) &lt;/strong&gt;Draw&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;the roulette wheel and calculate&amp;nbsp;the boundaries for each individual&lt;br&gt;
&lt;strong&gt;d) &lt;/strong&gt;If we use two individuals and their arithmetic mean for crossover each time,&amp;nbsp;and for mutation, we add 0.1 to x and subtract 0.1 from y for each individual created after crossover, what will be the next population with five members?&lt;br&gt;
For part (d), use the following random numbers in order whenever you need them in the selection process:&lt;br&gt;
$\text{random numbers} =&amp;nbsp; \{0.780,0.220,0.776,0.507,0.822,0.765,0.288,0.881,0.895,0.421\}$&lt;br&gt;
&amp;nbsp;&lt;/p&gt;</description>
<category>Artificial Intelligence</category>
<guid isPermaLink="true">https://ask.ghassem.com/1010/how-to-use-genetic-algorithm-to-optimize-a-function?show=1010#q1010</guid>
<pubDate>Wed, 23 Nov 2022 10:19:30 +0000</pubDate>
</item>
<item>
<title>Very short text classification when category text should be replaced by another category text?</title>
<link>https://ask.ghassem.com/980/classification-category-should-replaced-another-category</link>
<description>&lt;div style=&quot;max-width:800px&quot;&gt;
&lt;div style=&quot;color:#1A1A1B&quot;&gt;
&lt;p&gt;I need some tool to classify articles based on short category text which consists of two or three words separated by &#039;-&#039;. The RSS/XML tag content is for example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Foreign - News&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
&lt;p&gt;Football - Foreign&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I created my own categories in DB and now I need to classify categories from parsed RSS of this news source, so it fits news categories defined by me.&lt;/p&gt;

&lt;p&gt;I would, for example need all articles containing category &quot;football&quot; to be identified as a category &lt;em&gt;Sport&lt;/em&gt; but sometimes those categories XML tags contains exact match like &lt;em&gt;Foreign - News&lt;/em&gt; should belong in the DB to category defined by me as &lt;em&gt;Foreign&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Since I used only trained decision trees frameworks from AI so for another project so far, I would like to hear advice about probably AI based approach, technique or particular framework I can use to solve this problem. I don&#039;t want to get into a dead-end street by my own poor, in the field of AI not very experienced decision.&lt;/p&gt;

&lt;p&gt;While it can be solved by many ifs and &#039;contains&#039; function, it seems to me like not a very good solution.&lt;/p&gt;

&lt;p&gt;TLDR; I need basically something like &quot;clever, flexible and universal if-elseif&quot;.&lt;/p&gt;

&lt;p&gt;NOTE: I can also use article description text, if that would be necessary but it seems to me that this former category text is &amp;nbsp;unambiguous enough for this kind of problem.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
<category>Artificial Intelligence</category>
<guid isPermaLink="true">https://ask.ghassem.com/980/classification-category-should-replaced-another-category</guid>
<pubDate>Thu, 11 Feb 2021 12:48:47 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between Artificial Intelligence and Machine Learning?</title>
<link>https://ask.ghassem.com/253/difference-between-artificial-intelligence-machine-learning?show=580#a580</link>
<description>&lt;p&gt;The figure below should show you some of the most important differences.&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://i.imgur.com/XtkstSQ.png&quot;&gt;https://i.imgur.com/XtkstSQ.png&lt;/a&gt;&lt;/p&gt;</description>
<category>Artificial Intelligence</category>
<guid isPermaLink="true">https://ask.ghassem.com/253/difference-between-artificial-intelligence-machine-learning?show=580#a580</guid>
<pubDate>Mon, 04 Mar 2019 23:24:29 +0000</pubDate>
</item>
</channel>
</rss>