Category "arrays"

Multi input problem Keras. Expected to see 2 array(s), but instead got the following list of 1 arrays

I have a model that takes two inputs of the same shape (batch_size,512,512,1), and predict two masks each of shape (batch_size,512,512,1). dataset_input = tf.da

Nested for loop through json object array does not work

I need to build a new array based on json array (Context) bellow. Unfortunately I never reach the outer Loop after passing by first run. Is there any mistake in

How do you check if the Second Dimension of a 2D array is null?

Lets say for example you have a 2D Array field[60][]. How exactly can you check if the second part of the Array is null? Is there any way to do something simili

convert object in to array of json with given keys [closed]

I have object like { labels: ["city A", "city B"], data: ["Abc", "Bcd"] }; I want to convert above object as below array of json [ { labels

Sum array of objects value based on month - ReactJS

So first of all, because I am using a ChartJS I need to generate an array of months. The creation is looking like this : const [generatedMonths, setGeneratedMon

How do I count the number of filled-in rows of a sheet based on the contents of a column?

Disclaimer: I am completely self-taught in google sheets I have a sheet with columns for Date, Place, Title, etc. I am attempting to count how many rows have al

Save an array to Windows.Storage.ApplicationData.Current.LocalSettings (C# + WinUI3)

I just started learning WinUI 3 and I am currently trying to make a little todo app. I want to save the data of the lists so I can keep it even if the applicati

Kronecker product of 3 matrices using Python

Suppose that we have 2 2X2 numpy arrays: X=np.array([[0,1],[1,0]]) and I=np.array([[1,0],[0,1]]) Consider the Kronecker product XX=X^X where I have let the s

Implementing N-dim arrays in Erlang

I have an Erlang project requiring generating a nested list of array indices. Perhaps using arrays: would be a quick solution, but I would like to see how this

How to solve leetcode problem in JavaScript to check if an integer is a palindrome

Here is the code which i tried to solve, for the leetcode problem in javaScript https://leetcode.com/problems/palindrome-number/ Problem i am facing: It is work

Invalid Initializer When I try to call function from another function

I have two functions. One that returns the part of the string for me. Don't ask me why I'm doing it inside a function because I want to run this inside a thread

Convert React/javascript string array of objects to array of objects

This seems like a trivial issues but I can't get it working properly. I'm fairly new to JS/React so that is working against me also. This is the response I get

Javascript - sort an array of multiple objects of objects

I tried with no success to sort an array of multiple objects of objects. Here my database : var jsonDatas = [ { "type": "Voiture", "item

How to subtract 1 dimension Numpy arrays with different shapes and plot the difference in seaborn or matplotlib? [duplicate]

Basically I have these arrays print(img_arr[0].shape)->(returns) (122218,) print(img_arr1[0].shape)->(returns) (125204,) so when I did

Subtracting two arrays (variables with decimals) [closed]

How to subtract the below two arrays in java? (09.34, 09.56, 09.00, 08.55 ) (17.25, 18.06, 17.55, 16.00)

Ho can i use Explode function inside foreach loop to get 2 different arrays? [duplicate]

I have this $array DD.MM.YYYY|XX,xxx [0]=> string(17) "04.01.2021|26,140" [1]=> string(17) "05.01.2021|26,225" [2]=> string(17) "06

Referencing one array to make changes in another given certain conditions in JavaScript [closed]

I have an array, called arr1, example [9, 0, 0 ,9, 9]. I made a copy of this and called it arr2. I am trying to add the value one (1) to certa

An array of `int` values ​and return an array of boolean values

The task The correct implementation should receive an array of int values and return an array of booleans where each element is a result of a check if a corresp

How to map one image at a time with Alice carousel?

I am trying to add a carousel for my products. I have an array of url images in product.images that i want to show individually in the carousel but when i map t

Array Java Quotient

So I need help I'm trying to calculate the quotient of all the elements inside an array. I only have 2 pairs of code but I don't know if they will work. public