<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Numpy on Jice Lavocat</title><link>https://jice.lavocat.name/tags/numpy/</link><description>Recent content in Numpy on Jice Lavocat</description><generator>Hugo</generator><language>fr-FR</language><copyright>All rights reserved - 2016</copyright><lastBuildDate>Thu, 04 Jun 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://jice.lavocat.name/tags/numpy/index.xml" rel="self" type="application/rss+xml"/><item><title>Numpy error – ValueError: setting an array element with sequence</title><link>https://jice.lavocat.name/blog/2009/numpy-error-valueerror-setting-an-array-element-with-sequence/</link><pubDate>Thu, 04 Jun 2009 00:00:00 +0000</pubDate><guid>https://jice.lavocat.name/blog/2009/numpy-error-valueerror-setting-an-array-element-with-sequence/</guid><description>&lt;p style="text-align: justify;"&gt;
 You have struggled during hours and hours to understand why you got this damned error while compiling a complex array structure? I did. In my case I was trying to create an array of the following shape :
&lt;/p&gt;
&lt;p style="text-align: center;"&gt;
 [  [ [0,0,1,0] , 0.5] , [ [0,1,1,0] , 0.3] , [ [1,0,1,0] , 0.2] ]
&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;
 With the basic syntax, it was impossible. I first didn&amp;#8217;t notice the problem because I wasn&amp;#8217;t using the &amp;#8216;&lt;em&gt;array&lt;/em&gt;&amp;#8216; constructor, but when I tried to &lt;strong&gt;append &lt;/strong&gt;some value to my initial vector, I got the error : &lt;strong&gt;ValueError: setting an array element with sequence&lt;/strong&gt;.</description></item><item><title>La panoplie du petit chercheur</title><link>https://jice.lavocat.name/blog/2009/la-panoplie-du-petit-chercheur/</link><pubDate>Wed, 15 Apr 2009 00:00:00 +0000</pubDate><guid>https://jice.lavocat.name/blog/2009/la-panoplie-du-petit-chercheur/</guid><description>&lt;p&gt;A tout ceux qui veulent se lancer dans des sujets scientifiques ou l’on demandera de coder des choses nouvelles, je conseille le logiciel Python(x,y) qui integre en son sein toutes les bibliotheques python que vous pourrez surement demander un jour.&lt;/p&gt;
&lt;p&gt;A telecharger ici : &lt;a title="Python(xy)" href="http://www.pythonxy.com" target="_blank"&gt;&lt;a href="http://www.pythonxy.com"&gt;http://www.pythonxy.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>