<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments for Petamind	</title>
	<atom:link href="https://petaminds.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://petaminds.com/</link>
	<description>A.I, Data and Software Engineering</description>
	<lastBuildDate>Sat, 26 Mar 2022 02:11:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		Comment on Advanced Keras &#8211; Custom loss functions by Tung Nguyen		</title>
		<link>https://petaminds.com/advanced-keras-custom-loss-functions/#comment-80</link>

		<dc:creator><![CDATA[Tung Nguyen]]></dc:creator>
		<pubDate>Sat, 26 Mar 2022 01:47:48 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=1391#comment-80</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://petaminds.com/advanced-keras-custom-loss-functions/#comment-78&quot;&gt;SUN&lt;/a&gt;.

When calculating the loss, the params are vectors with same dimens, e.g. y_pred, y_true, and b. The calculation happens at the end of the epoch.

It means they did not pass 1 by 1 like [x_train1, y_train1, b1]. They first passing x_train, y_train to train the model each epoch, then calculate: y_pred, y_true with b in the custom loss.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://petaminds.com/advanced-keras-custom-loss-functions/#comment-78">SUN</a>.</p>
<p>When calculating the loss, the params are vectors with same dimens, e.g. y_pred, y_true, and b. The calculation happens at the end of the epoch.</p>
<p>It means they did not pass 1 by 1 like [x_train1, y_train1, b1]. They first passing x_train, y_train to train the model each epoch, then calculate: y_pred, y_true with b in the custom loss.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on One-hot encoding quick note by Advanced Keras - Custom loss functions - Petamind		</title>
		<link>https://petaminds.com/one-hot-encoding-quick-note/#comment-79</link>

		<dc:creator><![CDATA[Advanced Keras - Custom loss functions - Petamind]]></dc:creator>
		<pubDate>Sat, 26 Mar 2022 01:32:48 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=803#comment-79</guid>

					<description><![CDATA[[&#8230;] The&#160; column &#034;Origin&#034;&#160;is really categorical (not numeric). To eliminate the linear relations between them, we convert that to a one-hot: [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] The&nbsp; column &quot;Origin&quot;&nbsp;is really categorical (not numeric). To eliminate the linear relations between them, we convert that to a one-hot: [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Advanced Keras &#8211; Custom loss functions by SUN		</title>
		<link>https://petaminds.com/advanced-keras-custom-loss-functions/#comment-78</link>

		<dc:creator><![CDATA[SUN]]></dc:creator>
		<pubDate>Wed, 23 Mar 2022 16:08:00 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=1391#comment-78</guid>

					<description><![CDATA[Good job! Learned a lot from your sharing.
Well, I am wondering how to pass different parameters from an array to the custom loss function. 
Let&#039;s say my toy model likes this

def my_mse_loss_b(b):
     def mseb(y_true, y_pred):
         return K.mean(K.square(y_pred - y_true)) + b
     return mseb

inputs = Input(shape=(200,))
x = Dense(128, activation=&#039;relu&#039;)(input)
x = Dense(200, activation=&#039;relu&#039;)(x)
outputs = Dense(200, activation=&#039;linear&#039;)(x)
model = Model(inputs=inputs, outputs=outputs)
model.compile(loss=my_mse_loss_b(B), optimizer=Adam(lr=0.0005))
history = model.fit(x_train, y_train, batch_size=64, epochs=2)

The shape of my x_train is (1000,200,1),  y_train is (1000,200), B is (1000,)
When x_train[0] and  y_train[0] pass to the training model, B[0] is passed as b, then x_train[1] and  y_train[1] pass to the trainingmodel, B[1] is passed as b
Is that possible?
Would you please give me a hint?
Thanks, have a nice day!]]></description>
			<content:encoded><![CDATA[<p>Good job! Learned a lot from your sharing.<br />
Well, I am wondering how to pass different parameters from an array to the custom loss function.<br />
Let&#8217;s say my toy model likes this</p>
<p>def my_mse_loss_b(b):<br />
     def mseb(y_true, y_pred):<br />
         return K.mean(K.square(y_pred &#8211; y_true)) + b<br />
     return mseb</p>
<p>inputs = Input(shape=(200,))<br />
x = Dense(128, activation=&#8217;relu&#8217;)(input)<br />
x = Dense(200, activation=&#8217;relu&#8217;)(x)<br />
outputs = Dense(200, activation=&#8217;linear&#8217;)(x)<br />
model = Model(inputs=inputs, outputs=outputs)<br />
model.compile(loss=my_mse_loss_b(B), optimizer=Adam(lr=0.0005))<br />
history = model.fit(x_train, y_train, batch_size=64, epochs=2)</p>
<p>The shape of my x_train is (1000,200,1),  y_train is (1000,200), B is (1000,)<br />
When x_train[0] and  y_train[0] pass to the training model, B[0] is passed as b, then x_train[1] and  y_train[1] pass to the trainingmodel, B[1] is passed as b<br />
Is that possible?<br />
Would you please give me a hint?<br />
Thanks, have a nice day!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Using VS code for AngularJS development by Ian Hector		</title>
		<link>https://petaminds.com/using-vs-code-for-angularjs/#comment-76</link>

		<dc:creator><![CDATA[Ian Hector]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 17:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://petaminds.com/?p=230#comment-76</guid>

					<description><![CDATA[Hi there. Thanks for sharing the valuable information. I found this article very helpful. Keep up the good work.]]></description>
			<content:encoded><![CDATA[<p>Hi there. Thanks for sharing the valuable information. I found this article very helpful. Keep up the good work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Smooth nature snake &#8211; game redev with Kotlin (part 3) by Game frame rate &#38; Character animations (part 1) - Petamind		</title>
		<link>https://petaminds.com/smooth-nature-snake-game-redev-with-kotlin-part-3/#comment-75</link>

		<dc:creator><![CDATA[Game frame rate &#38; Character animations (part 1) - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:23:13 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=977#comment-75</guid>

					<description><![CDATA[[&#8230;] [1]. Game loop, https://gameprogrammingpatterns.com/game-loop.html.[2]. Game programming, https://en.wikipedia.org/wiki/Game_programming.[3]. Smooth snake, https://petaminds.com/smooth-nature-snake-game-redev-with-kotlin-part-3/. [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] [1]. Game loop, <a href="https://gameprogrammingpatterns.com/game-loop.html.%5B2%5D" rel="nofollow ugc">https://gameprogrammingpatterns.com/game-loop.html.%5B2%5D</a>. Game programming, <a href="https://en.wikipedia.org/wiki/Game_programming.%5B3%5D" rel="nofollow ugc">https://en.wikipedia.org/wiki/Game_programming.%5B3%5D</a>. Smooth snake, <a href="https://petaminds.com/smooth-nature-snake-game-redev-with-kotlin-part-3/" rel="ugc">https://petaminds.com/smooth-nature-snake-game-redev-with-kotlin-part-3/</a>. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Game frame rate &#038; Character animations  (part 1) by Game Frame rate and character animations (part 2) - Petamind		</title>
		<link>https://petaminds.com/game-frame-rate-character-animations-part-1/#comment-74</link>

		<dc:creator><![CDATA[Game Frame rate and character animations (part 2) - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:22:46 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=1512#comment-74</guid>

					<description><![CDATA[[&#8230;] part 1, we covered the principle of game frame rate and a useful game programming pattern for performance. [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] part 1, we covered the principle of game frame rate and a useful game programming pattern for performance. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Game frame rate &#038; Character animations  (part 1) by A really Cool data visualization: 3d globe in 2d space - Petamind		</title>
		<link>https://petaminds.com/game-frame-rate-character-animations-part-1/#comment-73</link>

		<dc:creator><![CDATA[A really Cool data visualization: 3d globe in 2d space - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:22:30 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=1512#comment-73</guid>

					<description><![CDATA[[&#8230;] class renders points on 2D surface view. We use a simple and lazy technique described in this article. By default, the constructor takes 100 points on the sphere. We declare radius as 1/3 of the screen [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] class renders points on 2D surface view. We use a simple and lazy technique described in this article. By default, the constructor takes 100 points on the sphere. We declare radius as 1/3 of the screen [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Make use of GG Colab and Jupyter notebook by Quick Benchmark Colab CPU GPU TPU (XLA-CPU) - Petamind		</title>
		<link>https://petaminds.com/make-use-of-gg-colab-and-jupyter-notebook/#comment-72</link>

		<dc:creator><![CDATA[Quick Benchmark Colab CPU GPU TPU (XLA-CPU) - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://petaminds.com/?p=561#comment-72</guid>

					<description><![CDATA[[&#8230;] is on Google Colab with a limited option for TPU on Google compute engine backend. See this post for a quick intro of Google Colab. Specifically, we test on CPU, GPU, and XLA_CPU (accelerated [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] is on Google Colab with a limited option for TPU on Google compute engine backend. See this post for a quick intro of Google Colab. Specifically, we test on CPU, GPU, and XLA_CPU (accelerated [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Recurrent neural network &#8211; time-series data- part 1 by Recurrent neural network - predict monthly milk production - Petamind		</title>
		<link>https://petaminds.com/recurrent-neural-network-time-series-data-part-1/#comment-71</link>

		<dc:creator><![CDATA[Recurrent neural network - predict monthly milk production - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:21:57 +0000</pubDate>
		<guid isPermaLink="false">https://petaminds.com/?p=1863#comment-71</guid>

					<description><![CDATA[[&#8230;] In part 1, we introduced a simple RNN for time-series data. To continue, this article applies a deep version of RNN on a real dataset to predict monthly milk production. [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] In part 1, we introduced a simple RNN for time-series data. To continue, this article applies a deep version of RNN on a real dataset to predict monthly milk production. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Machine learning quick note by Data Wrangling quick note - Petamind		</title>
		<link>https://petaminds.com/machine-learning-quick-note/#comment-70</link>

		<dc:creator><![CDATA[Data Wrangling quick note - Petamind]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 10:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://petaminds.com/?p=355#comment-70</guid>

					<description><![CDATA[[&#8230;] wrangling (munging), like most data analytics processes, is an iterative one – the practitioner will need to carry out these steps repeatedly in order to [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] wrangling (munging), like most data analytics processes, is an iterative one – the practitioner will need to carry out these steps repeatedly in order to [&#8230;]</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
