Package org.apache.mahout.h2obindings.drm

Examples of org.apache.mahout.h2obindings.drm.H2ODrm


  public static H2ODrm drmFromFile(String filename, int parMin) {
    try {
      if (isSeqfile(filename)) {
        return drmFromSeqfile(filename, parMin);
      } else {
        return new H2ODrm(FrameUtils.parseFrame(null,new File(filename)));
      }
    } catch (java.io.IOException e) {
      return null;
    }
  }
View Full Code Here


    } catch (java.io.IOException e) {
      return null;
    } finally {
      IOUtils.closeStream(reader);
    }
    return new H2ODrm(frame, labels);
  }
View Full Code Here

      AinCoreB = execDiagonal(A, B.viewDiagonal());
    } else {
      AinCoreB = execCommon(A, B);
    }

    return new H2ODrm(AinCoreB, keys);
  }
View Full Code Here

          }
        }
      }.doAll(1, A).outputFrame(null, null);

    // Carry forward labels of A blindly into ABt
    return new H2ODrm(Ax, keys);
  }
View Full Code Here

            nc.addStr(chk.atStr0(vstr, r));
          }
        }
      }.doAll(1, keys).outputFrame(null, null).anyVec();

    return new H2ODrm(Arr, Vrr);
  }
View Full Code Here

          }
        }
      }.doAll(AewB_cols, A).outputFrame(null, null);

    // Carry forward labels of A blindly into ABt
    return new H2ODrm(AewB, keys);
  }
View Full Code Here

      keys = task.doAll(1, frbind).outputFrame(null, null).anyVec();
    } else {
      task.doAll(frbind);
    }

    return new H2ODrm(frbind, keys);
  }
View Full Code Here

          }
        }
      }.doAll(AewScalar_cols, A).outputFrame(null, null);

    // Carry forward labels of A blindly into ABt
    return new H2ODrm(AewScalar, keys);
  }
View Full Code Here

      vecs[d++] = vfrb;
    }
    // and create a new Frame with the combined list of column Vecs
    Frame fr = new Frame(vecs);
    /* Finally, inherit A's string labels into the result */
    return new H2ODrm(fr, keysa);
  }
View Full Code Here

          }
        }
      }.doAll(frout);
    }

    return new H2ODrm(frout, vout);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.h2obindings.drm.H2ODrm

Copyright © 2018 www.massapicom. 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.