Ember JS:ember如何为以下代码处理DOM渲染视图:

时间:2016-02-15 12:52:21

标签: ember.js ember-data

model: function(){
            var model = currentInstance.store.findAll('model_a');
            model.then(function(response){}, function(error){});
            return model;
        }
    },  

上面我有两个模型Model_a和Model_b。在路线I中,我有以下模型方法,每5秒钟后调用一次。

library(ORE)

ore.connect(user="XXXX", service_name="XXXXX", host="XXXXXXXX", password="XXXXX", port=XXXX, all=TRUE)
ore.sync('MYDATABASE') 
ore.attach()

ore.pull(MY_TABLE)

trainingset <- MY_TABLE$MY_COLUMN[1:1000]
crossvalidationset <- MY_TABLE$MY_COLUMN[1001-2000]

# Training
my_column_avg <- mean(trainingset)
my_column_std <- sd(trainingset)

# Validation
probabilities <- dnorm(crossvalidationset,my_column_avg,my_column_std)

epsilons <- c(0.01,0.05,0.1,0.25,0.5,0.75,0.8)

num_rows <- length(probabilities)
num_cols <- length(epsilons)
results <- matrix(TRUE, num_rows, num_cols)

# Anomaly detection results for several epsilons
for(j in 1:num_cols)
{    
    results[,j] <- (probabilities > epsilons[j])
}

每5秒后服务器发送实时数据。什么是没有数据从后端改变? Ember仍然会尝试重新渲染整个视图吗?

0 个答案:

没有答案