<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>نوشته های محمدحسین ملک‌پور</title>
        <link>https://virgool.io/feed/@mhmp98</link>
        <description>دانشجوی علوم کامپیوتر | علاقه‎مند به علوم داده</description>
        <language>fa</language>
        <pubDate>2026-06-10 14:05:50</pubDate>
        <image>
            <url>https://files.virgool.io/upload/users/30238/avatar/5GACqF.png?height=120&amp;width=120</url>
            <title>محمدحسین ملک‌پور</title>
            <link>https://virgool.io/@mhmp98</link>
        </image>

                    <item>
                <title>Model-based vs Instance-based Learning</title>
                <link>https://virgool.io/@mhmp98/model-based-vs-instance-based-learning-cfcrmg1kbi7h</link>
                <description>In instance-based learning there are normally no parameters to tune, the system is normally hard coded with priors in form of fixed weights or some algorithms like tree search based algorithms. Such a system normally does what is known as lazy learning by absorbing the training data instances and using those data instances for inference.For example, in scale invariant feature transform (SIFT), the recognition pipeline is hard coded. All it does during learning is to index descriptors into an indexing data structure such as a kd-tree together with some geometric information. That information is then directly used during inference to recognize instances of objects.Thus instance-based learning is just about storing the training data instances. Though the training data itself can be preprocessed in many ways and stored in memory.In model-based learning, we are talking more about reinforcement learning (RL). In model-based RL an agent builds a model of the environment in which it exists so that it can use that model to infer which actions to take in that environment that lead to desired outcomes in order to achieve a given goal.Model-based learning can also be seen as the opposite of instance-based learning. In model-based learning there are parameters to tune. These parameters with optimal settings are supposed to model the problem as accurately as possible thus learning is not simply about memorization but rather more about searching for those optimal parameters.</description>
                <category>محمدحسین ملک‌پور</category>
                <author>محمدحسین ملک‌پور</author>
                <pubDate>Sun, 02 May 2021 19:23:41 +0430</pubDate>
            </item>
                    <item>
                <title>مقایسه 6 کتابخانه معروف پایتون NLP</title>
                <link>https://virgool.io/@mhmp98/%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87-6-%DA%A9%D8%AA%D8%A7%D8%A8%D8%AE%D8%A7%D9%86%D9%87-%D9%85%D8%B9%D8%B1%D9%88%D9%81-%D9%BE%D8%A7%DB%8C%D8%AA%D9%88%D9%86-nlp-opyvg3cawt0v</link>
                <description>General overviewNLTK (Natural Language Toolkit) is used for such tasks as tokenization, lemmatization, stemming, parsing, POS tagging, etc. This library has tools for almost all NLP tasks.Spacy is the main competitor of the NLTK. These two libraries can be used for the same tasks.Scikit-learn provides a large library for machine learning. The tools for text preprocessing are also presented here.Gensim is the package for topic and vector space modeling, document similarity.The general mission of the Pattern library is to serve as the web mining module. So, it supports NLP only as a side task.Polyglot is the yet another python package for NLP. It is not very popular but also can be used for a wide range of the NLP tasks.</description>
                <category>محمدحسین ملک‌پور</category>
                <author>محمدحسین ملک‌پور</author>
                <pubDate>Sun, 02 Feb 2020 17:09:18 +0330</pubDate>
            </item>
                    <item>
                <title>10 نکته و ترفند پایتون برای برنامه‌نویسان مبتدی</title>
                <link>https://virgool.io/@mhmp98/10-%D9%86%DA%A9%D8%AA%D9%87-%D9%88-%D8%AA%D8%B1%D9%81%D9%86%D8%AF-%D9%BE%D8%A7%DB%8C%D8%AA%D9%88%D9%86-%D8%A8%D8%B1%D8%A7%DB%8C-%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87%D9%86%D9%88%DB%8C%D8%B3%D8%A7%D9%86-%D9%85%D8%A8%D8%AA%D8%AF%DB%8C-wj2efdhmotah</link>
                <description>Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.In-Place Swapping Of Two Numbers | تعویض دو عدد در یک خطورودی:x, y = 10, 20
print(x, y)
x, y = y, x
print(x, y)خروجی:10 2020 10(اعداد از راست به چپ خوانده شود)Reversing a string in Python | معکوس کردن یک رشتهورودی:a = &amp;quotVirgool&amp;quot
print(&amp;quotReverse is&amp;quot, a[::-1])خروجی:Reverse is loogriVCreate a single string from all the elements in list | ساختن یک رشته از اعضای یک لیستورودی:a = [&amp;quotVir&amp;quot, &amp;quotgo&amp;quot, &amp;quotol&amp;quot]
print(&amp;quot &amp;quot.join(a))خروجی:VirgoolChaining Of Comparison Operators |  تغییر اپراتورهای مقایسه‌ایورودی:n = 10
result = 1 &lt; n &lt; 20
print(result)
result = 1 &gt; n &lt;= 9
print(result)خروجی:TrueFalsePrint The File Path Of Imported Modules | یافتن مسیر نصب فایل ماژول‌های استفاده شدهورودی:import os;
import socket;
print(os)
print(socket)خروجی:&lt;module &#x27;os&#x27; from &#x27;/usr/lib/python3.5/os.py&#x27;&gt;&lt;module &#x27;socket&#x27; from &#x27;/usr/lib/python3.5/socket.py&#x27;&gt;Use Of Enums In Python | استفاده از داده شمارشیورودی:class MyName:
    x, y, z = range(3)
obj = MyName()
print(obj.x)
print(obj.y)
print(obj.z)خروجی:012Return Multiple Values From Functions | بازگرداندن مقادیر متعدد توسط تابعورودی:def x():
    return 1, 2, 3, 4
a, b, c, d = x()
print(a, b, c, d)خروجی:1 2 3 4 (اعداد از راست به چپ خوانده شود)Find The Most Frequent Value In a List | یافتن بیشترین ارزش در لیستورودی:test = [1, 2, 3, 4, 2, 2, 3, 1, 4, 4, 4]
print(max(set(test), key = test.count))خروجی:4Check The Memory Usage Of An Object | یافتن مقدار حافظه استفاده شده توسط یک شیورودی:import sys
x = 1
print(sys.getsizeof(x))خروجی:28Print string N times | چاپ متعدد یک رشتهورودی:n = 2;
a =&amp;quotVirgool&amp;quot
print(a * n);خروجی:VirgoolVirgool</description>
                <category>محمدحسین ملک‌پور</category>
                <author>محمدحسین ملک‌پور</author>
                <pubDate>Mon, 21 Oct 2019 02:19:57 +0330</pubDate>
            </item>
            </channel>
</rss>