<?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 Martina Cantaro on Medium]]></title>
        <description><![CDATA[Stories by Martina Cantaro on Medium]]></description>
        <link>https://medium.com/@martinacantaro?source=rss-c0996f977843------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9UnZ5SCkFYGuUk3a.jpeg</url>
            <title>Stories by Martina Cantaro on Medium</title>
            <link>https://medium.com/@martinacantaro?source=rss-c0996f977843------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:17:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@martinacantaro/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[A wild PyBoy appears: a GameBoy emulator written in Python]]></title>
            <link>https://medium.com/this-is-not-a-monad-tutorial/a-wild-pyboy-appears-a-gameboy-emulator-written-in-python-22666762232f?source=rss-c0996f977843------2</link>
            <guid isPermaLink="false">https://medium.com/p/22666762232f</guid>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[gameboy]]></category>
            <dc:creator><![CDATA[Martina Cantaro]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 18:32:59 GMT</pubDate>
            <atom:updated>2020-04-29T18:32:59.205Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of us would be lying if we said the idea of making an emulator hasn’t crossed our mind, but usually when you start digging into everything that is involved it becomes a bit overwhelming and the idea stops sparking joy, so we ditch it as soon as some other shiny thing appears. On the other hand, we have the brave people that take on this task and work on it until completion (or at least until having something decent enough to show) which by itself is an amazing accomplishment.</p><p>Most emulators are written in a system programming language (C, C++, Rust, etc), but every now and then we find a hidden gem, not only using a different language, but that evolved into something more. In this case, we found <a href="https://github.com/Baekalfen/PyBoy">PyBoy</a> a GameBoy emulator written in Python with a new found focus on making the external components available to bots or AI.</p><p>We interviewed one of the creators of PyBoy, <a href="https://github.com/Baekalfen">Mads Ynddal</a>.</p><p>Join the Not a Monad Tutorial Telegram <a href="https://t.me/notamonadtutorial">group</a> or <a href="https://t.me/channel_notamonadtutorial">channel</a> to talk about programming, computer science and papers. See you there!</p><p><em>If you are looking for good engineers send me an email to mail@fcarrone.com or you can also reach me via twitter at </em><a href="https://twitter.com/unbalancedparen"><em>@unbalancedparen</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RLyE-WB7MXRGjMhxm7L8w.png" /><figcaption>Credit: dayoftheshirt.com</figcaption></figure><h4>Why make a GameBoy emulator? For the time being, this is only for GameBoy not GameBoy Color, correct?</h4><p>I’ve always been interested in emulation and hardware architecture. Throughout my childhood, I had somehow stumbled into almost every kind of emulator. Even consoles that I was too young to have had myself.<br> So from one of the first years of university (I studied Computer Science at the University of Copenhagen), I had seriously been looking at Game Boy emulators, and particularly Gearboy. I even did a poorly written PR for a save/load state feature for it. But I never finished it.</p><p>At some point, I convinced two of my friends at the university to join me in making an emulator. We didn’t even consider other platforms. I had done a bit of research, and because of the age of the platform, there is plenty of documentation readily available. I think that might be what have settled the decision very quickly.</p><p>It’s only the original Game Boy at the moment. We hope to expand to Game Boy Color very soon. Especially, if the new interest might draw someone in, who wants to help.</p><h4>What is the process of making an emulator like? What would you say is the hardest part?</h4><p>We had the benefit not to have to reverse engineer anything to write the emulator. People have been working on it for 30 years, and have been really good at sharing that knowledge. So it was very similar to doing work based on some insanely specific requirements specifications. Whatever the documentation states, that is what we implement. Bugs and everything included.</p><p>An entire platform like the Game Boy is impossible to make in one go, so the process is to make single components by themselves, and hope that everything will line up when they are brought together. We started with the CPU and memory, and worked our way out from there.</p><p>Because of the many years of reverse engineering work, there are also a bunch of test ROMs available. One we have been using a lot are the “Blargg” test ROMs. They are “game” ROMs that you start on the emulator and it runs the emulator through a bunch of tests and tells which opcodes* might have problems. This test ROM even works before implementing any graphics, as it will write the output through the Link Cable.</p><p>Although it’s good at telling you that there is a problem, it’s still a lot of work to read documentation and debug to figure out what is missing to make the test pass. But it’s definitely an incremental process. You keep adding small things, discover bugs or glitches, and fix them, while the emulation keeps getting slightly better. But counting the amount of hours of work for the benefit clearly has diminishing returns. But it’s a excellent feeling, when a really obscure bug gets sorted out. And that makes you go and fix the next one.</p><p>I don’t know what the hardest part was, but getting the opcodes to work is not easy. It’s easy enough to program things like an add, sub, cmp opcode and so on. But there are a trillion small things that need to be handled. Carry, half-carry, DAA (Decimal Adjust after Addition) and all kinds of different conditions that apply in some cases but not all.</p><h4>How does one go about debugging an emulator?</h4><p>It’s a lot of detective work, and writing debugging tools for yourself. Multiple times, I have found myself chasing bugs in a game, with a notepad and pen to write down addresses and memory values to try to see why a loop became infinite, or why I could one go up or down in Pokémon, but not left or right (it was a missing flag in an opcode).</p><p>It can easily take an entire day to find the cause, if not more.</p><h4>Any tips on how to handle the implementation of the hundreds of opcodes? I saw that you use some sort of code generation, care to explain it?</h4><p>My best tip is to not do all the typing yourself. If somebody has made documentation on the opcodes, try to extract them directly. Because it’s easy to get lazy and start making assumptions. But you’ll find that opcodes — especially the flags — are very tricky. For example, assuming the flags that will be set after an add. It’s entirely dependent on which registers the numbers code from.</p><p>The code generation is quite simple. It reads through a website with a table of every opcode. For each cell, it identifies the type of operation — for example an add — and then the operands. Depending on the size of the operands (16-bit or 8-bit) and whether the second operand is a register or a literal, it will go to different code generating routines.</p><p>Having this strict process helped uncover a lot of mistakes I would otherwise have made, if I was typing by hand.</p><h4>Does the difference in speed between the host CPU and the emulated CPU cause any issues?</h4><p>It causes a lot of problems. The games were programmed for a very specific clockspeed, and won’t necessarily accept any other clockspeed. There’s also the problem of synchronizing the screen buffer with the host computer. The Game Boy will always output exactly 60 frames per second. No matter what is shown on the screen, it won’t take any longer or shorter to produce the frame.</p><p>A naive approach is to make each opcode take the time that it would on a real Game Boy. The problem is, that it’s very hard to control modern computers down to the 1/1,000,000 of a second. Even controlling modern OS’s to accurately pause for 1/100 of a second (10ms), is close to impossible. So the approach of limiting each instruction is not feasible. We need to control something less frequent.<br> Therefore we ended up limiting the output of frames. A quick hack is to enable V-Sync and have the host’s monitor operate at 60hz as well. This might have worked in the past, but it’s getting more and more common to have more than 60hz screens. Thankfully, SDL2 has some functions to make these limitations. But this means, that we are right now limiting the speed entirely on the frame output. This works out well, as it is more or less the only way that users get output from the machine.</p><p>This creates a time of time-warping between the real world and the emulated machine. We calculate the entire frame’s worth of CPU cycles in a fraction of what it would normally take. Then we wait until the next frame is needed, and we repeat.</p><p>This has the downside that we cannot do sub-frame input, as we only poll SDL2 for events once a frame. But we are considering a way to record the timing of input, and “replay” it at the right point of the frame calculation, to make it as if it was happening in real time.</p><p>We have several of these time-warping tricks in the emulator.</p><h4>Why use Python instead of something like C/C++? Any challenges or benefits related to your language or library choices?</h4><p>It’s without a doubt harder to make a Game Boy emulator in Python,= than in C/C++. But it’s OK with a bit of challenge. And it seems like we are the only people to have pulled it off. It’s also nice to show the C-fanboys, that Python can also be applied in “high-performance” applications.</p><p>It enables us to work out prototypes much faster, and when things are working, I go and make the type definitions, to get the speed.</p><p>Usually I develop new features using PyPy, and when I know it works, I go through the process of making it work in Cython. Knowing that the code itself is working, makes it a lot easier to work with Cython, as I know any bug will be related to some variable being the wrong type.</p><h4>Another unique thing about PyBoy is that it allows to make bots or AI for it. Was this something you wanted from the start or something you added later? Do you know any interesting projects that make use of this feature?</h4><p>It was added later. In the beginning, we just wanted to make an emulator. If we had planned to make it focused on AI/bots, we would probably rather have adapted an existing emulator.</p><p>We have seen some cool projects already. Before making v1.0.0 public, there had already been some people trying to make an AI for Super Mario Land. And there was a project to make PyBoy run in Discord in the style of “Twitch Plays Pokemon”.</p><p>After releasing v1.0.0, I have already seen someone make a script that dumps the entire map of one of his favorite games. This is done by tracking the tiles (part of the 2D rendering), and put them in a big image of the entire area. The bot-support we have been implementing, makes this super easy, as the developer has to know very little about the Game Boy hardware, and just use the PyBoy interface. We provide functions that will convert the internal graphics format that the Game Boy uses (16 bytes for an 8x8 pixel 4-four tile) to a PIL.Image in RGB format.</p><h4>Do you have any recommendations for anyone looking to make an emulator?</h4><p>The <a href="https://github.com/Baekalfen/PyBoy/raw/master/PyBoy.pdf">report</a> we wrote for the first version of PyBoy is still in the GitHub repo. People should definitely take a look at it, for a light introduction to emulation. For the more specific documentation, I can recommend the <a href="http://bgb.bircd.org/pandocs.htm">Pan Docs</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22666762232f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/this-is-not-a-monad-tutorial/a-wild-pyboy-appears-a-gameboy-emulator-written-in-python-22666762232f">A wild PyBoy appears: a GameBoy emulator written in Python</a> was originally published in <a href="https://medium.com/this-is-not-a-monad-tutorial">This is not a Monad tutorial</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How DataQuest Does A Better Job At Teaching Than DataCamp]]></title>
            <link>https://medium.com/@martinacantaro/how-dataquest-does-a-better-job-at-teaching-than-datacamp-92ce43c06?source=rss-c0996f977843------2</link>
            <guid isPermaLink="false">https://medium.com/p/92ce43c06</guid>
            <category><![CDATA[learning-how-to-learn]]></category>
            <category><![CDATA[datacamp]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[dataquest]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Martina Cantaro]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 18:08:24 GMT</pubDate>
            <atom:updated>2020-01-15T18:45:13.438Z</atom:updated>
            <content:encoded><![CDATA[<h3>Which Platform is More Effective to Learn Data Science? DataQuest Vs. DataCamp</h3><h4>I used both and I break down what each one does right to help you learn effectively.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLmGSFeNpFPSVHpZVFQ12g.jpeg" /><figcaption>Learning with DataQuest</figcaption></figure><p>This week I started the DataCamp track <a href="https://www.datacamp.com/tracks/machine-learning-scientist-with-python">Machine Learning Scientist With Python</a>.</p><p>I found that I’m not able to retain as much of the DataCamp courses as I did with DataQuest, and having spent several hours on both platforms, I came to the conclusion this has to do with two things:</p><ul><li>DataQuest is slightly better at teaching in a way that favors retention</li><li>DataQuest is slightly better at explaining the context: the ins and outs of the real-life work a data scientist does</li></ul><h3>DataQuest Vs. DataCamp</h3><p>As you progress through a DataCamp course, the exercises carry you along in a very handheld way: the video explains the concept, then there’s a screen where the steps to complete the exercise are laid out on the left and you have to input the correct answer on the right. It is so easy to reproduce the correct code that I usually end up through the exercise without retaining the knowledge that will allow me to remember the process later, no matter how hard I try to focus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SZvBDUXLRedyvFUnJ1Jpg.jpeg" /><figcaption>Jupyter Notebook project in DataQuest</figcaption></figure><p>Since I learn best by doing actual projects, facing problems and solving them, I decided to create simple Jupyter Notebooks to implement the concepts I’m learning as I go. This means it will take me longer to complete the course, but I think I’m going to learn more ando also have something to show for it when I finish, which motivates me a lot.</p><p>I learnt to do this because this is how DataQuest did it: at the end of each unit they had you complete an entire project in Jupyer Notebook, which leaves you with ready-to-publish material. I think it’s a great way to help students build a portfolio, gain confidence to carry projects from begining to end, and retain the concepts in the long term.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QaDCA2Ea1MH_VPJPXGMcCA.jpeg" /><figcaption>More data science and hot beverages</figcaption></figure><p>They also had you complete a long exercise with minimal instructions at the end of some chapters, which is a great way to train your memory to fetch the concepts (instead of having the steps right there on the screen) or go back in search for them, which makes you aware of the gaps in your knowledge.</p><p>If you are familiar with Barbara Oakley’s teachings in <a href="https://www.coursera.org/learn/learning-how-to-learn">Learning How to Learn</a>, you’ll remember her warning against the <a href="https://www.coursera.org/learn/learning-how-to-learn">“illusion of competence”</a>. Just because we’re able to retrieve something from short-term memory (such as being able to write a piece of code having just read a very descriptive instruction), doesn’t mean that it has been stored in long-term memory. This is how DataCamp does it. This handheld part is great to begin with, but unless you’re a quick learner you will probably forget what you just did moments after clicking “Next”.</p><p>DataQuest’s method of carrying out tasks with minimal instructions after the handheld part also forces you to do what Barbara Oakley calls “interleaving”: going back and forth between concepts and understanding which ones apply where and why. You start to internally form criteria for when to use each tool instead of mechanically following a recipe.</p><p>On another note, I mentioned DataQuest encourages you to build your data science portfolio. They let you download all the practice datasets you use (DataCamp doesn’t), which allows you to reproduce your results outside of their platform (i.e., in your github), and I cannot stress enough how much the jupyter notebook projects helped me get the full picture of completing a project from beginning to end by myself.</p><p>I still like DataCamp. Their course videos are clear and concise, the teachers are great and the courses I took helped me improve, that’s why I continue to take them (that and because my company offers them to me for free!). I just think DataQuest was more mindful about the process of learning when they created their courses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIM4b6SuPxpje6HKDqc2zA.jpeg" /><figcaption>As I progress through DataCamp, I like to do my own Jupyter notebooks outside the plaform.</figcaption></figure><p>I hope this article was useful to you. Shares and claps are welcome, and feel free to contact me if you have any questions :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92ce43c06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things You Didn’t Know About the Boston Housing Dataset]]></title>
            <link>https://medium.com/data-science/things-you-didnt-know-about-the-boston-housing-dataset-2e87a6f960e8?source=rss-c0996f977843------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e87a6f960e8</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tech-history]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Martina Cantaro]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 17:45:32 GMT</pubDate>
            <atom:updated>2020-01-19T05:22:13.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>What You Didn’t Know About the Boston Housing Dataset</h3><h4>We all have been training our machine learning models on incorrect data. Oops!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTIyFaSNImGkFSYdriKFZA.jpeg" /><figcaption>Boston at night. Photo by Mohit Singh at Unsplash</figcaption></figure><p>If you&#39;re studying data science you will probably come accross the Boston housing dataset. Actually, I dare you to try to google how to fit a linear regression model and <strong>not</strong> come accross with it. Scikit-learn even lets you import it directly with sklearn.datasets, along with other classic datasets.</p><p>The Boston housing dataset is small, especially in today&#39;s age of big data. But there was a time where neatly collected and labeled data was extremely hard to access, so a publicly available dataset like this was very valuable to researchers. And although we now have things like Kaggle and open government initiatives which give us plenty of datasets to choose from, this one is a staple to machine learning practice as chocolate is to a break-up.</p><p>Each of the 506 rows in the dataset describes a Boston suburb or town, and it has 14 columns with information such as average number of rooms per dwelling, pupil-teacher ratio, and per capita crime rate. The last row describes the median price of owner-occupied homes (this leaves out homes that are rented out), and it&#39;s usually the row that we are trying to predict when we use it for regression tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeYXdND4eaYmqrSzKXKKFg.png" /><figcaption>scikit-learn&#39;s description of the dataset, including the name and description of the columns. See anything problematic with the language? We&#39;ll address that below. <a href="https://scikit-learn.org/stable/datasets/index.html">Source</a></figcaption></figure><h3>How did it become so ubiquitous?</h3><p>The data comprised in this dataset was collected by the U.S Census Service, and it first appeared in the history of statistical analysis in a paper by David Harrison Jr. and Daniel L. Rubinfeld, called <a href="https://www.researchgate.net/publication/4974606_Hedonic_housing_prices_and_the_demand_for_clean_air">Hedonic housing prices and the demand for clean air</a>[1]. Researchers had a hypothesis that people were willing to pay more for clean air —hence the term “hedonic pricing” which in this case is used to describe the monetary value that people assign to factors not inherent to the property but to its surrounding area— but there was debate on how to measure it. Harrison and Rubinfeld were concerned:</p><blockquote><em>While several studies have used [the housing market approach] to estimate the demand for air quality improvements, they have paid little attention to the sensitivity of the results to the assumptions embedded in the procedures.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbtxU4C8UA_yy9IMVZ0tVw.png" /><figcaption>Where it all started. <a href="https://www.researchgate.net/publication/4974606_Hedonic_housing_prices_and_the_demand_for_clean_air">Source</a></figcaption></figure><p>To make their point, they needed a clean database with lots of variables and a precise measure of air pollution. They found this in the “data for census tracts in the Boston Standard Metropolitan Statistical Area (SMSA) in 1970”. They highlighted the quality of the data to fit their purpose:</p><blockquote><em>Our data base is superior to others because it contains a large number of neighborhood variables (necessary to isolate the independent influence of air pollution) and more reliable air pollution data.</em></blockquote><p>This is probably why it became so popular. It was next used in Belsley, Kuh &amp; Welsch (1980), <a href="https://onlinelibrary.wiley.com/doi/book/10.1002/0471725153">‘Regression Diagnostics: Identifying Influential Data and Sources of Collinearity’</a>[2] and it has been used to benchmark algorithms ever since.</p><h3>Some problems with the original dataset and how to fix them</h3><h4>The language</h4><p>First of all, a sociological consideration. When we go to the canonical description of the dataset, under column<strong> </strong>&#39;B&#39; it says: <em>&#39;1000(Bk — 0.63)² where Bk is the proportion of </em>blacks(sic)<em> by town&#39;</em>. This language is outdated and might be offensive, so please avoid it when describing this dataset. &quot;African-Americans&quot; or &quot;black people&quot; are more acceptable terms.</p><h4>Censored data</h4><p>As for the quality of the data, the dataset is pretty robust but not perfect. When you do a scatter plot of the data, you quickly notice that prices of homes seem to be capped at 50. This is because the Census Service <em>censored</em> the data. Censoring data means restricting the range of possible values of a variable. In this case, they decided to set the maximum value of the price variable to 50k USD, so no price can go beyond that value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*Pr0-cdzPQtjLd6fdJi6eyg.png" /><figcaption>Source: <a href="https://github.com/martinacantaro/data_science/blob/master/datacamp_machine_learning_scientist_with_python/01_supervised_learning_with_scikit-learn/03_Boston_housing.ipynb">my own analysis</a></figcaption></figure><p>That’s why, when you visualize the data, you see a sort of ceiling that flattens your datapoints at 50. In reality, these prices were probably higher. Otis W. Gilley listed the 16 cases that fall under this category in his paper <a href="https://spatial-statistics.com/pace_manuscripts/jeem_ms_dir/pdf/fin_jeem.pdf">On the Harrison and Rubinfeld Data</a>[3].</p><p>It&#39;s probably impossible to find out, decades later, what the actual prices of these properties were. Although this is a very minor proportion of the total, it&#39;s important to note its potential impact in algorithm training results.</p><h4>Incorrect data</h4><p>More importantly, Otis W. Gilley also rechecked all of the data against the original census data and found that eight of the median prices in the median value column were plain and simply wrong!</p><p>This is what he found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mJYXdMIsQdTESqsONBLeg.png" /><figcaption>Source: Gilley (1996) <a href="https://spatial-statistics.com/pace_manuscripts/jeem_ms_dir/pdf/fin_jeem.pdf">On the Harrison and Rubinfeld Data</a></figcaption></figure><p>Gilley proceeded to correct the dataset, run the calculations of the original paper on hedonic pricing and check if the results still held true. Luckily for the history of data science, there were no significant changes.</p><blockquote><em>The goodness-of-fit as measured by R2 rises somewhat when employing the corrected observations. However, the magnitudes of the coefficients did not change much and the qualitative results from the original regression still hold.</em></blockquote><p>Still, it would be best for the data science and research community to use the corrected data from now on, to avoid any potential impact on results. But is there an easy way to do this? Yes!</p><p>The good news is Roger Bivand, Jakub Nowosad and Robin Lovelace have published a <a href="https://nowosad.github.io/spData/reference/boston.html">Corrected Boston Housing Database</a> which includes both the original median prices (under the original column name &#39;MEDV&#39;) and the corrected median prices (called &#39;CMEDV&#39;). They also included data that was not previously available before, namely, the latitude and longitude of each observation, wich allows for more mapping. I think this should be our new Boston Housing reference dataset for the years to come, that&#39;s why I&#39;m doing a pull request on scikit-learn&#39;s git repository to fix this. Hopefully it will be available to everybody soon.</p><h3>The future of the Boston Housing Dataset</h3><p>Like &quot;hello world&quot; or &quot;foo, bar, baz&quot;, the Boston Housing Dataset has become part of a common vocabulary. And it will remain so, not only because thoroughly labeled datasets for machine learning are still not <em>that</em> easy to find, but because using the same dataset for decades to test different algorithms has allowed scientists to control for that variable and highlight the differences in algorithm performance.</p><p>With the small improvements and considerations described in this article, this classic dataset still has a place in the future of statistics and data science, and will surely continue to serve as a canvas to hone the skills of novice and experienced practicioners alike for years to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pwv8MwN2ODyeCf942i1r0w.jpeg" /><figcaption>Acorn Street, Boston. <a href="https://unsplash.com/photos/ZLN2WOVpjCo">Source</a></figcaption></figure><h3>References:</h3><p>[1] Harrison, David &amp; Rubinfeld, Daniel, <a href="https://www.researchgate.net/publication/4974606_Hedonic_housing_prices_and_the_demand_for_clean_air">Hedonic housing prices and the demand for clean air. Journal of Environmental Economics and Management</a> (1978), Journal of Environmental Economics and Management</p><p>[2] D. A. Belsley, E. Kuh, R. E. Welsch, <a href="https://onlinelibrary.wiley.com/doi/book/10.1002/0471725153">Regression Diagnostics: Identifying Influential Data and Sources of Collinearity</a> (1980), Wiley Eds.</p><p>[3] O. W. Gilley, <a href="https://spatial-statistics.com/pace_manuscripts/jeem_ms_dir/pdf/fin_jeem.pdf">On the Harrison and Rubinfeld Data</a> (1996), Journal of Environmental Economics and Management</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e87a6f960e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/things-you-didnt-know-about-the-boston-housing-dataset-2e87a6f960e8">Things You Didn’t Know About the Boston Housing Dataset</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[Mitos y Verdades acerca de las Terapias Cognitivo-Conductuales]]></title>
            <link>https://medium.com/psychology-and-neuroscience/mitos-y-verdades-acerca-de-las-terapias-cognitivo-conductuales-dc466ee48770?source=rss-c0996f977843------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc466ee48770</guid>
            <dc:creator><![CDATA[Martina Cantaro]]></dc:creator>
            <pubDate>Sat, 27 Sep 2014 23:01:55 GMT</pubDate>
            <atom:updated>2014-09-27T23:01:55.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kKmf-koqavuZyVuSAujUw.jpeg" /></figure><p>Actualmente las terapias cognitivo-conductuales (TCC) son cada vez más difundidas en el mundo. Sin embargo, en Argentina cuentan con menor difusión, por lo que a menudo se las juzga en base a preconceptos que no representan acertadamente sus principios teóricos ni sus prácticas.</p><h4>Mito: Las terapias cognitivo-conductuales no tienen en cuenta la subjetividad de la persona y nos trata como a los perros de Pavlov: sólo somos máquinas de producir respuestas a estímulos.</h4><p><strong>Realidad: </strong>Si bien este modelo se basa en la tesis conductista de que la conducta humana es aprendida, considera que este aprendizaje no se limita a un simple vínculo asociativo entre estímulos y respuestas sino que se vincula a relaciones de significado personales, esquemas cognitivos o reglas. Los aspectos cognitivos, afectivos y conductuales están interrelacionados, de modo que un cambio en uno de ellos afecta a los otros dos componentes. Entonces, no se puede tomar la conducta aislada sin comprender qué significado tiene para el individuo, ya que el significado forma parte de la estructura que se intenta modificar. Aún más, entre los objetivos de un tratamiento pueden encontrarse el modificar el significado que una conducta tiene para el paciente, para poder modificar esa conducta.</p><h4><strong>Mito: Terapias cortas = resultados menores</strong></h4><p><strong>Realidad: </strong>Se juzga a las terapias cortas en base a la idea preconcebida de que una terapia debe durar varios años para ser efectiva. Pero si pudiéramos obtener los mismos resultados con menor demora, ahorrándole al paciente no sólo tiempo y dinero sino años de sufrimiento, ¿sería ético tomar el camino más largo?</p><p>La duración media de una terapia cognitivo-conductual oscila entre las 10 y 20 sesiones, mientras que las psicoanalíticas suelen durar varios años y no es raro escuchar que una persona ha estado en terapia durante 10 años de su vida. ¿podemos hablar de efectividad de una terapia si estamos en el consultorio durante años sin obtener los resultados que buscamos? Y si luego de varios años el paciente comienza a mejorar, ¿podemos afirmar fuera de duda que el cambio se produjo gracias a la terapia, o bien por los cambios que inevitablemente se producen en la vida de la persona, como conseguir pareja o cambiar de trabajo? Y si verdaderamente la terapia más larga fue la causa de la mejora, ¿no podría haber conseguido los mismos resultados con un menor gasto de tiempo, dinero, y sufrimiento?</p><p>Es ético ofrecer al paciente la manera más rápida de resolver su sufrimiento, evitándole prolongar el malestar y ahorrándole tiempo y dinero.</p><h4>Mito: Si lo reprimido no se va, el síntoma vuelve</h4><p><strong>Realidad: </strong>Freud postuló que la causa de los síntomas se encontraba en que un pensamiento reprimido permanecía en el inconsciente, y la cura consistía en hallarlo y tramitarlo. Desde este supuesto hipotético se critica a las TCC por no buscar lo reprimido, y se supone que por esta causa el paciente no mejoraría.</p><p>Lo cierto es que muchos males psíquicos son propensos a la remisión, independientemente del marco teórico con el que se los trate. Las adicciones o los trastornos alimentarios, por ejemplo, suelen presentar recaídas y múltiples altibajos. Esto no significa necesariamente que haya un elemento reprimido causando la recaída. De hecho, en la práctica, las terapias cognitivo-conductuales son las que han demostrado mayor efectividad, rondando el 50% de resultados exitosos. Se requiere realizar mayor investigación para mejorar aún más esta cifra.</p><p>Por otra parte, las terapias cognitivo-conductuales han mostrado un gran índice de efectividad en patologías que el Psicoanálisis atribuye a ideas reprimidas, como la fobia específica y el trastorno por pánico (trastornos de ansiedad). Entre el 80% y 90% de los pacientes que realizaron terapia cognitivo-conductual alcanzaron la remisión completa, y estos logros se mantienen incluso 2 años después de finalizado el tratamiento. Si la hipótesis del significante reprimido fuera cierta, las TCC no serían las terapias con mayor índice de éxito.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc466ee48770" width="1" height="1" alt=""><hr><p><a href="https://medium.com/psychology-and-neuroscience/mitos-y-verdades-acerca-de-las-terapias-cognitivo-conductuales-dc466ee48770">Mitos y Verdades acerca de las Terapias Cognitivo-Conductuales</a> was originally published in <a href="https://medium.com/psychology-and-neuroscience">Psychology and Neuroscience</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>