1,627 questions
0
votes
0
answers
28
views
Why does TimeDistributed(Flatten()) raise an InvalidArgumentError when reshaping works?
I'm building a lip-reading model using tensorflow.keras and getting an error when applying TimeDistributed(Flatten()) after my Conv3D layers. Here's a simplified version of my model architecture:
CODE
...
0
votes
1
answer
30
views
Creating a Map from Flatten in Terraform
Here is my issue - I have a locals code block like the below. I need to create a Map from these values (these values are used in multiple places)
locals {
object = {
1 = {
name = "...
0
votes
1
answer
67
views
Flatten array of counted items to array of items
I have a parameter array of record items with an amount field each, and I'd like to flatten it to an explicit list of items:
type Item = record(int: size, string: colour);
type Batch = Item ++ record(...
0
votes
1
answer
55
views
Terraform using flatten with nested objects
Here is my situation, I am trying to deploy a legacy Azure Frontdoor instance to the new version of AFD and do it via Terraform.
Here is an excerpt from my locals block for the Firewall policy:
...
1
vote
2
answers
58
views
Flattening lists within a dataframe within a dataframe, whilst preserving names
I present here an input data frame that contains lists of data frames that contains lists.
Some of the bottom level lists are empty and some lists have length greater than one.
I am looking for some R ...
0
votes
1
answer
41
views
Efficient way to flatten account hierarchy so that parents of each child node is displayed in adjacent columns?
This hierarchy has several top level parent nodes which roll down into children nodes which roll down into varying levels of depth containing deeper level children nodes. The level in which a node ...
0
votes
2
answers
95
views
convert two columns containing group and items in group into a single column
I have two columns in a google sheets tab, a group column and an item column. Each entry in the item column is unique and only occurs in one group.
GROUP
ITEM
A
X
A
Y
A
Z
B
I
B
J
B
K
C
P
C
Q
C
R
I ...
-1
votes
1
answer
47
views
How to retain the index of an array element after flattening and sorting into descending order using sort() [duplicate]
I have a 2D array of integers. I need to find the largest value within the entire array along with its index.
Currently I am flattening the array and then using the sort() function to find the highest ...
0
votes
1
answer
45
views
how to return results on same line when different values
I have a SQL query that returns the following:
ID SUBID Volume Gross Net
89 D 0 10039 10000
89 X 10039
89 D 0 6991 7001
89 X 6991
...
0
votes
1
answer
68
views
How to flatten nested JSON with Jolt?
Hi I have following json and would like to unnest filed.So, I have an old order and new order for products. There could be more field to the json but level of nesting remains the same. Is it possible ...
0
votes
1
answer
64
views
Error with flatten function while using Terraform
I am getting the below error while using flatten function
Error: Invalid index
│
│ on helpers.tf line 11, in locals:
│ 11: ]) : "${x.app_region}_${x.app_environment}" => x }["${...
2
votes
3
answers
104
views
SQL query nested arrays JSON Snowflake
I am trying to query a table in Snowflake that is built with a single field labeled "Value" and each row is a separate JSON object.
Row 1: {
"artist": {
"artistID": ...
1
vote
3
answers
135
views
Flatten one depth of list
I have a list nested inside another with a depth of 3.
[
[[1, 2, 3], [4, 5, 6]],
[[1, 2, 3], [4, 5, 6]]
]
After using List.flatten/1 my result is
[1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6]
I want to ...
3
votes
3
answers
122
views
How can I "flatten" a true multi-dimensional array to old "simulated" gawk array?
I have gawk's (4.++) true multi-dimensional array I'd like to "flatten" (convert to the OLD/simulated - pre-gawk 4.x) array.
arr["a"]["a"] = 21
arr["a"]["b&...
0
votes
2
answers
110
views
Ingest Yahoo Finance data with Azure Data Factory
I'm trying to ingest data from the open-source, public Yahoo Finance API using Azure Data Factory. The endpoint I'm testing is https://query2.finance.yahoo.com/v8/finance/chart/GOLD.
I am able to ...