Ejemplo n.º 1
0
def autoencoder_view_origin():
    driver = AutoEncoderDriver()
    driver.load_data()
    driver.size_normalization()
    while True:
        uid = _input_uid()
        sid = _input_sid()
        plt.plot(driver.data[uid][sid][0],
                driver.data[uid][sid][1])
        plt.show()
Ejemplo n.º 2
0
def autoencoder_view_origin():
    driver = AutoEncoderDriver()
    driver.load_data()
    driver.size_normalization()
    while True:
        uid = _input_uid()
        sid = _input_sid()
        plt.plot(driver.data[uid][sid][0], driver.data[uid][sid][1])
        plt.show()
Ejemplo n.º 3
0
def autoencoder_view():
    # use the following 4 steps, you can use iamge data
    driver = AutoEncoderDriver()
    driver.load_data()
    driver.size_normalization()
    driver.imagize()

    while True:
        uid = _input_uid()
        sid = _input_sid()
        image = driver.data[uid][sid]
        width, height = image.shape
        for i in range(width):
            for j in range(height):
                if image[i][j] != 0:
                    print ".",
                else:
                    print " ",
            print
        print
Ejemplo n.º 4
0
def autoencoder_view():
    # use the following 4 steps, you can use iamge data
    driver = AutoEncoderDriver()
    driver.load_data()
    driver.size_normalization()
    driver.imagize()

    while True:
        uid = _input_uid() 
        sid = _input_sid()
        image = driver.data[uid][sid]
        width, height = image.shape
        for i in range(width):
            for j in range(height):
                if image[i][j] != 0:
                    print ".",
                else:
                    print " ",
            print 
        print 
Ejemplo n.º 5
0
def autoencoder_view_features(loadFromDump=False):
    driver = AutoEncoderDriver()
    if not loadFromDump:
        driver.load_data()
        driver.size_normalization()
        driver.imagize()
        driver.generate_features()
        driver.dump_feature()
    else:
        driver.load_feature()
    while True:
        uid = _input_uid()
        sid = _input_sid()
        print driver.features[uid][sid]
Ejemplo n.º 6
0
def autoencoder_view_features(loadFromDump=False):
    driver = AutoEncoderDriver()
    if not loadFromDump:
        driver.load_data()
        driver.size_normalization()
        driver.imagize()
        driver.generate_features()
        driver.dump_feature()
    else:
        driver.load_feature()
    while True:
        uid = _input_uid()
        sid = _input_sid()
        print driver.features[uid][sid]