<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NumPy Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/numpy/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/numpy/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Thu, 01 Aug 2019 05:40:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>NumPy 1.17.0 is here, officially drops Python 2.7 support pushing forward Python 3 adoption</title>
		<link>https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/</link>
					<comments>https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Thu, 01 Aug 2019 05:40:00 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[datasets]]></category>
		<category><![CDATA[NumPy]]></category>
		<category><![CDATA[numpy.random]]></category>
		<category><![CDATA[transforms]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=4181</guid>

					<description><![CDATA[<p>Source: hub.packtpub.com Last week, the Python team released NumPy version 1.17.0. This version has many new features, improvements and changes to increase the performance of NumPy. The major highlight <a class="read-more-link" href="https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/">NumPy 1.17.0 is here, officially drops Python 2.7 support pushing forward Python 3 adoption</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Source: hub.packtpub.com</p>



<p>Last week, the Python team released NumPy version 1.17.0. This version has many new features, improvements and changes to increase the performance of NumPy.</p>



<p>The major highlight of this release includes a new extensible numpy.random module, new radix sort &amp; timsort sorting methods and a NumPy pocketfft FFT implementation for accurate transforms and better handling of datasets of prime length. Overriding of numpy functions has also been made possible by default.</p>



<p>NumPy 1.17.0 will support Python versions 3.5 – 3.7. Python 3.8b2 will work with the new release source packages, but may not find support in future releases. Python version 2.7 has been officially dropped.</p>



<h4 class="wp-block-heading">What’s new in NumPy 1.17.0?</h4>



<h4 class="wp-block-heading">New extensible numpy.random module with selectable random number generators</h4>



<p>NumPy 1.17.0 has a new extensible numpy.random module. It also includes four selectable random number generators and improved seeding designed for use in parallel processes.&nbsp;<em>PCG64</em>&nbsp;is the new default numpy.random module while&nbsp;<em>MT19937</em>&nbsp;is retained for backwards compatibility.</p>



<h4 class="wp-block-heading">Timsort and radix sort have replaced mergesort for stable sorting</h4>



<p>Both the radix sort and timsort have been implemented and can be used instead of mergesort. The sorting kind options ‘stable’ and ‘mergesort’ have been made aliases of each other with the actual sort implementation for maintaining backward compatibility. Radix sort is used for small integer types of 16 bits or less and timsort is used for all the remaining types of bits.</p>



<h4 class="wp-block-heading">empty_like and related functions now accept a shape argument</h4>



<p>Functions like empty_like, full_like, ones_like and zeros_like will now accept a shape keyword argument, which can be used to create a new array as the prototype and overriding its shape also. These functions become extremely useful when combined with&nbsp;<em>the __array_function__&nbsp;</em>protocol, as it allows the creation of new arbitrary-shape arrays from NumPy-like libraries.</p>



<h4 class="wp-block-heading">User-defined LAPACK detection order</h4>



<p><em>numpy.distutils</em>&nbsp;now uses an environment variable, comma-separated and case insensitive detection order to determine the detection order for LAPACK libraries. This aims to help users with MKL installation to try different implementations.</p>



<h4 class="wp-block-heading">.npy files support unicode field names</h4>



<p>A new format version of .npy files has been introduced. This enables structured types with non-latin1 field names. It can be used automatically when needed.</p>



<h4 class="wp-block-heading">New mode “empty” for pad</h4>



<p>The new mode “empty” pads an array to a desired shape without initializing any new entries.</p>



<h4 class="wp-block-heading">New Deprications in NumPy 1.17.0</h4>



<h4 class="wp-block-heading">numpy.polynomial functions warn when passed float in place of int</h4>



<p>Previously, functions in numpy.polynomial module used to accept float values. With the latest NumPy version 1.17.0, using float values is deprecated for consistency with the rest of NumPy. In future releases, it will cause a TypeError.</p>



<h4 class="wp-block-heading">Deprecate numpy.distutils.exec_command and temp_file_name</h4>



<p>The internal use of these functions has been refactored for better alternatives such as replace&nbsp;<em>exec_command</em>&nbsp;with subprocess. Also, replace Popen and temp_file_name&nbsp;with tempfile.mkstemp.</p>



<h4 class="wp-block-heading">Writeable flag of C-API wrapped arrays</h4>



<p>When an array is created from the C-API to wrap a pointer to data, the writeable flag set during creation indicates the read-write nature of the data. In the future releases, it will not be possible to convert the writeable flag to True from python as it is considered dangerous.</p>



<h2 class="wp-block-heading">Other improvements and changes</h2>



<h4 class="wp-block-heading">Replacement of the fftpack based fft module by the pocketfft library</h4>



<p><em>pocketfft</em>&nbsp;library contains additional modifications compared to&nbsp;<em>fftpack</em>&nbsp;which helps in improving accuracy and performance. If FFT lengths has large prime factors then&nbsp;<em>pocketfft</em>uses Bluestein’s algorithm, which maintains O(N log N) run time complexity instead of deteriorating towards O(N*N) for prime lengths.</p>



<h4 class="wp-block-heading">Array comparison assertions include maximum differences</h4>



<p>Error messages from array comparison tests such as testing.assert_allclos now include “max absolute difference” and “max relative difference” along with previous “mismatch” percentage. This makes it easier to update absolute and relative error tolerances.</p>



<h4 class="wp-block-heading">median and percentile family of functions no longer warn about nan</h4>



<p>Functions like numpy.median, numpy.percentile, and numpy.quantile are used to emit a&nbsp;<em>RuntimeWarning</em>&nbsp;when encountering a nan. Since these functions return the nan value, the warning is redundant and hence has been removed.</p>



<h4 class="wp-block-heading">timedelta64 % 0 behavior adjusted to return NaT</h4>



<p>The modulus operation with two&nbsp;<em>np.timedelta64</em>&nbsp;operands now returns&nbsp;<em>NaT</em>&nbsp;in case of division by zero, rather than returning zero.</p>



<p>Though users are happy with NumPy 1.17.0 features, some are upset over the Python version 2.7 being officially dropped.</p>
<p>The post <a href="https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/">NumPy 1.17.0 is here, officially drops Python 2.7 support pushing forward Python 3 adoption</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/numpy-1-17-0-is-here-officially-drops-python-2-7-support-pushing-forward-python-3-adoption/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
