Questions tagged [multipleoutputs]

83 questions
29
votes
3 answers

How to train the network only on one output when there are multiple outputs?

I am using a multiple output model in Keras model1 = Model(input=x, output=[y2, y3]) model1.compile((optimizer='sgd', loss=cutom_loss_function) my custom_loss function is def custom_loss(y_true, y_pred): y2_pred = y_pred[0] y2_true =…
shaaa
  • 503
  • 1
  • 4
  • 16
10
votes
3 answers

Output multiple losses added by add_loss in Keras

I've investigated the Keras example for custom loss layer demonstrated by a Variational Autoencoder (VAE). They have only one loss-layer in the example while the VAE's objective consists out of two different parts: Reconstruction and…
Tik0
  • 2,499
  • 4
  • 35
  • 50
8
votes
1 answer

How is a multiple-outputs deep learning model trained?

I think I do not understand the multiple-output networks. Althrough i understand how the implementation is made and i succesfully trained one model like this, i don't understand how a multiple-outputs deep learning network is trained. I mean, what…
7
votes
2 answers

Hadoop multiple outputs with speculative execution

I have a task which writes avro output in multiple directories organized by few fields of the input records. For example : Process records of countries across years and write in a directory structure of country/year…
rakesh99
  • 1,234
  • 19
  • 34
6
votes
1 answer

How to implement a custom layer wit multiple outputs in Keras?

Like stated in the title, I was wondering as to how to have the custom layer returning multiple tensors: out1, out2,...outn? I tried keras.backend.concatenate([out1, out2], axis = 1) But this does only work for tensors having the same length, and…
Tassou
  • 439
  • 1
  • 5
  • 16
5
votes
0 answers

How to add partitionBy column name as prefix in spark output file in scala

I have done quite a lot research for this question and no where found the satisfying answer . I have to have rename my output file coming out of the spark . Currently i am output my spark data frame in S3 and then i read it again and then rename and…
user9175539
4
votes
2 answers

How to rename spark data frame output file in AWS in spark SCALA

I am saving my spark data frame output as csv file in scala with partitions. This is how i do that in Zeppelin. val sqlContext = new org.apache.spark.sql.SQLContext(sc) import sqlContext.implicits._ import org.apache.spark.{ SparkConf,…
3
votes
0 answers

How to get rid of the suffix "-r-00xxx" when using Hadoop MultipleOutputs?

In the MR job FileOutputFormat.setCompressOutput(job, true); FileOutputFormat.setOutputCompressorClass(job, GzipCodec.class); MultipleOutputs.addNamedOutput(job, OUTPUT, TextOutputFormat.class, NullWritable.class, Text.class); In my Reducer String…
2
votes
1 answer

How to change the reducer output file names in a hadoop mr job?

I have a reducer script that need generate a bunch of xml files. I want to set the file name programatically using reducer key. I'm using MultipleOutputs to accomplish that as follows. MultipleOutputs mos = new…
pkgajulapalli
  • 1,066
  • 3
  • 20
  • 44
2
votes
1 answer

R keras declare multiple outputs

Directly below is an example that works followed by ones that don't. library(keras) # placeholder data Y <- data.frame(y1=1:100,y2=1:100) X <- data.frame(x1=1:100,x2=1:00,x3=1:100) # add covariates input <-…
Scott Worland
  • 1,352
  • 1
  • 12
  • 15
2
votes
1 answer

Multiple outputs for multi step ahead time series prediction with Keras LSTM

Following a similar question, I have a problem where I need to predict many steps ahead of 3 different time series. I managed to generate a network that given the past 7 values of 3 time series as input, predicts 5 future values for one of them. The…
Titus Pullo
  • 3,751
  • 15
  • 45
  • 65
2
votes
0 answers

C# Linq to SQL pass List in stored procedure

I'm looking to pass a List of string in my stored procedure, I tried to set up the indications of the following tutorial but I'm stuck in last step:…
2
votes
1 answer

do spark java api has the class like hadoop MultipleOutputs / FSDataOutputStream?

i am trying to output some specific records in reduce part, which depend on the value of key-value records. in hadoop mapreduce can use the code like public void setup(Context context) throws IOException, InterruptedException { …
zzzzzzzz
  • 33
  • 4
2
votes
1 answer

MyBatis set fetch size on ResultSet as out parameter of procedure

I have stored procedure that I need to call using MyBatis. Anyway I managed to call this stored procedure. Procedure has multiple out parameters. One of out parameter is oracle cursor. I need to iterate over Oracle Cursor, but when I do this without…
Stevan
  • 31
  • 2
  • 7
2
votes
1 answer

How can I input and output multiple files with gulp and browserify

I'm sure there's a way to do this, but I couldn't find it. What I want is to pass multiple files into browserify and output multiple files - this is useful for a case where a site has multiple SPA's, with each having its own requires. Say I have…
sa125
  • 28,121
  • 38
  • 111
  • 153
1
2 3 4 5 6