Examples of load()


Examples of org.apache.hama.ml.recommendation.cf.OnlineCF.load()

      recommender.setTaskCount(2);
      recommender.setUpdateFunction(MeanAbsError.class);
      recommender.setOutputPath(outputFileName);
      assertEquals(true, recommender.train());

      recommender.load(outputFileName, false);
      int correct = 0;
      for (Preference<Integer, Integer> test : test_prefs) {
        double actual = test.getValue().get();
        double estimated = recommender.estimatePreference(test.getUserId(), test.getItemId());
        correct += (Math.abs(actual-estimated)<0.5)?1:0;
View Full Code Here

Examples of org.apache.harmony.awt.gl.image.DecodingImageSource.load()

        }

        DecodingImageSource source = new IISDecodingImageSource(iis);
        OffscreenImage image = new OffscreenImage(source);
        source.addConsumer(image);
        source.load();
        return image.getBufferedImage();
    }

    @Override
    public BufferedImage read(int i) throws IOException {
View Full Code Here

Examples of org.apache.harmony.x.imageio.plugins.jpeg.IISDecodingImageSource.load()

        }

        DecodingImageSource source = new IISDecodingImageSource(iis);
        OffscreenImage image = new OffscreenImage(source);
        source.addConsumer(image);
        source.load();
        // The interrupted flag should be cleared because ImageDecoder interrupts
        // current thread while decoding (due its architecture).
        Thread.interrupted();
        return image.getBufferedImage();
    }
View Full Code Here

Examples of org.apache.isis.objectstore.sql.jdbc.installer.JdbcFieldMappingFactoryInstaller.load()

            final FieldMappingLookup fieldMappingLookup = new FieldMappingLookup();
            final JdbcFieldMappingFactoryInstaller installer = new JdbcFieldMappingFactoryInstaller();

            Defaults.initialise(SqlObjectStore.BASE_NAME, IsisContext.getConfiguration());

            installer.load(fieldMappingLookup);
            // fieldMappingLookup.setValueMappingFactory(new
            // JdbcFieldMappingFactoryInstaller());

            final ObjectMappingLookup objectMappingLookup = new ObjectMappingLookup();
            objectMappingLookup.setValueMappingLookup(fieldMappingLookup);
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.sql.jdbc.installer.JdbcFieldMappingFactoryInstaller.load()

            final FieldMappingLookup fieldMappingLookup = new FieldMappingLookup();
            final JdbcFieldMappingFactoryInstaller installer = new JdbcFieldMappingFactoryInstaller();

            Defaults.initialise(SqlObjectStore.BASE_NAME, IsisContext.getConfiguration());

            installer.load(fieldMappingLookup);
            // fieldMappingLookup.setValueMappingFactory(new
            // JdbcFieldMappingFactoryInstaller());

            final ObjectMappingLookup objectMappingLookup = new ObjectMappingLookup();
            objectMappingLookup.setValueMappingLookup(fieldMappingLookup);
View Full Code Here

Examples of org.apache.isis.viewer.wicket.model.models.EntityModel.load()

            @Override
            public void onSubmit(AjaxRequestTarget target) {
                final EntityModel entityModel = (EntityModel) rowModel;
                ObjectAdapter selectedAdapter = null;
                try {
                    selectedAdapter = entityModel.load(ConcurrencyChecking.CHECK);
                    handler.onSelected(this, selectedAdapter, target);
                } catch(ConcurrencyException ex) {

                    // should work second time, because the previous attempt will have updated the OAM's OIDs version.
                    selectedAdapter = entityModel.load(ConcurrencyChecking.CHECK);
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.load()

                IvySettings ivySettings = new IvySettings();
                if (javaProject != null) {
                    ivySettings.setBaseDir(javaProject.getProject().getLocation().toFile());
                }
                try {
                    ivySettings.load(url);
                    ivySettingsLastModified = 0;
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException("Parsing error of the Ivy settings",
                            "The ivy settings file '" + settingsPath + "' could not be parsed ("
                                    + this.toString() + ")", e);
View Full Code Here

Examples of org.apache.jackrabbit.core.persistence.IterablePersistenceManager.load()

                NodeId id = (NodeId) it.next();
                if (callback != null) {
                    callback.beforeScanning(null);
                }
                try {
                    NodeState state = pm.load(id);
                    Set propertyNames = state.getPropertyNames();
                    for (Iterator nameIt = propertyNames.iterator(); nameIt
                            .hasNext();) {
                        Name name = (Name) nameIt.next();
                        PropertyId pid = new PropertyId(id, name);
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter.load()

        DefaultWorkspaceFilter filter = null;

        File filterFile = findFilterFile(contentSyncRoot);
        if (filterFile != null) {
            filter = new DefaultWorkspaceFilter();
            filter.load(filterFile);
        }

        File metaInfDir = new File(contentSyncRoot.getParent(), Constants.META_INF);

        if (metaInfDir.isDirectory()) {
View Full Code Here

Examples of org.apache.jetspeed.util.descriptor.ExtendedPortletMetadata.load()

        assertEquals("should contain user.name.family", "Dudley", (String) userInfo.get("user.name.family"));
        assertNull("should not contain user.home-info.online.email", userInfo.get("user.home-info.online.email"));

        // With linked attributes
        ExtendedPortletMetadata extMetaData = new ExtendedPortletMetadata(new FileReader("test/testdata/deploy/jetspeed-portlet.xml"), portletApp);
        extMetaData.load();

        // persist the app
        try
        {
            portletRegistry.updatePortletApplication(portletApp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.