forxltk

Results 19 comments of forxltk

The following code should help you ``` xx = x[:, 0:1] yy = x[:, 1:2] x_left = tf.greater(xx, 0.1) x_right = tf.less(xx, 0.3) y_left = tf.greater(yy, 0.2) y_right = tf.less(yy,...

> Dear @forxltk Tnx so much. yy = x[: , 0:2] or yy= x[: , 1:2] ? x_left_condition & ... or x_left & ... ? should I put this in...

``` layer_size = [3] + [15] + [1] activation = "tanh" initializer = "Glorot uniform" net = dde.maps.FNN(layer_size, activation, initializer) ``` There are only `x` and `y`, so it should...

> @forxltk You are right. I corrected this but again got the same error. Seems that `tf.where` work differently in tf1 and tf2. - tf1: K = tf.where(condition, 10.0\*tf.ones_like(xx), 1.0\*tf.ones_like(xx))...

You should learn something from the above code. BTW, you can also use `tf.logical_or` `tf.logical_and`, then everything should be easy.

> @forxltk Would you please let me know whether the below is correct: > > xx = x[:, 0:1] yy = x[:, 1:2] > > x_left = tf.greater(xx, 0.1) x_right...

@happyzhouch I think you can't use hard bc here. Otherwise, what is `y` in `(0, 0)` or other corners? For conflicting adjacent bc, see #579.