RcppDL自动编码器的重建数据具有相同的值

时间:2016-09-29 10:12:20

标签: r deep-learning autoencoder

我正在使用RcppDL libarary做一些实验。训练后,我使用原始数据集重建数据。但是,所有数据都具有相同的值。

我的数据(第一栏是id):

           [,1]     [,2] [,3]      [,4]       [,5] [,6]      [,7]       [,8]      [,9] [,10]     [,11] [,12]
 [1,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [2,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [3,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [4,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [5,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [6,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [7,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [8,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
 [9,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[10,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[11,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[12,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[13,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[14,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[15,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[16,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[17,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[18,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[19,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[20,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[21,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[22,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[23,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[24,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[25,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[26,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[27,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[28,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[29,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[30,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[31,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[32,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[33,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[34,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[35,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[36,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[37,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[38,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[39,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1
[40,] 0.7905348 0.999999    1 0.4721214 0.01729769    1 0.8770443 0.05453092 0.0353921     1 0.9994972     1

重建后得到的结果:

  da_obj <- Rda(x.new)
  setCorruptionLevel(da_obj, 0.01)
  setHiddenRepresentation(da_obj, 8)
  setTrainingEpochs(da_obj, 500)
  setLearningRate(da_obj, 0.002)
  train(da_obj)
  coord <- reconstruct(da_obj, x.new)

我的代码非常简单:

*******************************************************************************************************
*            - - + APPLICATION + - -            *       - - + DOMAIN + - -       * - - + STATUS + - - *
*******************************************************************************************************
* sftpproj                                      * default                        * DEPLOYED           *
*******************************************************************************************************

INFO  2016-09-29 10:43:34,241 [[sftpproj].SFTP.receiver.01] com.mulesoft.module.batch.engine.DefaultBatchEngine: Created instance 30388390-8629-11e6-a2c5-1e6f20524153 for batch job sftpprojBatch
INFO  2016-09-29 10:43:34,243 [[sftpproj].SFTP.receiver.01] com.mulesoft.module.batch.engine.DefaultBatchEngine: Starting input phase
INFO  2016-09-29 10:43:34,245 [[sftpproj].SFTP.receiver.01] com.mulesoft.module.batch.engine.DefaultBatchEngine: Input phase completed
ERROR 2016-09-29 10:43:34,281 [[sftpproj].SFTP.receiver.01] org.mule.exception.DefaultMessagingExceptionStrategy: 
********************************************************************************
Message               : Object "org.mule.transport.sftp.SftpInputStream" not of correct type. It must be of type "{interface java.lang.Iterable,interface java.util.Iterator,interface org.mule.routing.MessageSequence,interface java.util.Collection}" (java.lang.IllegalArgumentException)
Type                  : com.mulesoft.module.batch.exception.BatchException
Code                  : MULE_ERROR--2
********************************************************************************
Exception stack is:
1. Object "org.mule.transport.sftp.SftpInputStream" not of correct type. It must be of type "{interface java.lang.Iterable,interface java.util.Iterator,interface org.mule.routing.MessageSequence,interface java.util.Collection}" (java.lang.IllegalArgumentException)
  org.mule.util.collection.EventToMessageSequenceSplittingStrategy:64 (null)
2. Object "org.mule.transport.sftp.SftpInputStream" not of correct type. It must be of type "{interface java.lang.Iterable,interface java.util.Iterator,interface org.mule.routing.MessageSequence,interface java.util.Collection}" (java.lang.IllegalArgumentException) (com.mulesoft.module.batch.exception.BatchException)
  com.mulesoft.module.batch.engine.DefaultBatchEngine:378 (null)
********************************************************************************
Root Exception stack trace:
java.lang.IllegalArgumentException: Object "org.mule.transport.sftp.SftpInputStream" not of correct type. It must be of type "{interface java.lang.Iterable,interface java.util.Iterator,interface org.mule.routing.MessageSequence,interface java.util.Collection}"
    at org.mule.util.collection.EventToMessageSequenceSplittingStrategy.split(EventToMessageSequenceSplittingStrategy.java:64)
    at org.mule.util.collection.EventToMessageSequenceSplittingStrategy.split(EventToMessageSequenceSplittingStrategy.java:25)
    at com.mulesoft.module.batch.engine.queue.BatchQueueLoader.splitAndLoad(BatchQueueLoader.java:63)
    at com.mulesoft.module.batch.engine.DefaultBatchEngine.load(DefaultBatchEngine.java:361)
    at com.mulesoft.module.batch.DefaultBatchJob.execute(DefaultBatchJob.java:305)
    at com.mulesoft.module.batch.DefaultBatchJob$1.process(DefaultBatchJob.java:229)
    at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24)
    at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:107)
    at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44)
    at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24)
    at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:107)
    at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44)
    at org.mule.transport.AbstractMessageReceiver.routeEvent(AbstractMessageReceiver.java:511)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:226)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:208)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:200)
    at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:187)
    at org.mule.transport.sftp.SftpMessageReceiver$1.process(SftpMessageReceiver.java:203)
    at org.mule.transport.sftp.SftpMessageReceiver$1.process(SftpMessageReceiver.java:179)
    at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16)
    at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35)
    at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22)
    at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30)
    at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14)
    at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67)
    at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44)
    at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50)
    at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40)
    at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41)
    at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48)
    at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28)
    at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13)
    at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:110)
    at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:30)
    at org.mule.transport.sftp.SftpMessageReceiver.routeFile(SftpMessageReceiver.java:178)
    at org.mule.transport.sftp.SftpMessageReceiver.poll(SftpMessageReceiver.java:121)
    at org.mule.transport.AbstractPollingMessageReceiver.performPoll(AbstractPollingMessageReceiver.java:216)
    at org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:80)
    at org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:49)
    at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267)
    at org.mule.work.WorkerContext.run(WorkerContext.java:286)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

********************************************************************************

有谁能帮我弄清楚这里有什么问题?

0 个答案:

没有答案