Exemple #1
0
def submit(args):
    filenames = ['solution.py', 'README.md']
    udacity.submit(nanodegree,
                   projects[0],
                   filenames,
                   environment=args.environment,
                   jwt_path=args.jwt_path)
Exemple #2
0
def submit(options):

    if len(options.args) == 0 or options.args[0] not in projects:
        raise RuntimeError("You must specifiy 'isolation' or 'isolation-pvp' after 'udacity submit'.")

    project_name = options.args[0]
    if project_name == 'isolation-pvp':
        require_confirmation(RESUBMIT_MSG)
    patterns = SETTINGS.get(project_name, {})
    if not patterns:
        raise RuntimeError("")

    required_files = [validate_file_info(ptn, **kwargs)
                      for ptn, kwargs in patterns.get("required", {}).items()]
    optional_files = [validate_file_info(ptn, lo=0, **kwargs)
                      for ptn, kwargs in patterns.get("optional", {}).items()]
    filenames = sum(required_files + optional_files, [])
    file_info = (list(patterns.get("required", {}).values()) +
                 list(patterns.get("optional", {}).values()))
    max_size = sum([dict(info).get("size", 0) for info in file_info]) * 2**20

    udacity.submit(nanodegree,
                   project_name,
                   filenames, 
                   environment = options.environment,
                   max_zip_size=max_size)
Exemple #3
0
def submit(options):

    project_name = options.args[0]
    if project_name == 'isolation-pvp':
        require_confirmation(RESUBMIT_MSG)
    patterns = SETTINGS.get(project_name, {})
    if not patterns:
        raise RuntimeError("")

    required_files = [
        validate_file_info(ptn, **kwargs)
        for ptn, kwargs in patterns.get("required", {}).items()
    ]
    optional_files = [
        validate_file_info(ptn, lo=0, **kwargs)
        for ptn, kwargs in patterns.get("optional", {}).items()
    ]
    filenames = sum(required_files + optional_files, [])
    file_info = (list(patterns.get("required", {}).values()) +
                 list(patterns.get("optional", {}).values()))
    max_size = sum([dict(info).get("size", 0) for info in file_info]) * 2**20

    udacity.submit(nanodegree,
                   project_name,
                   filenames,
                   environment=options.environment,
                   max_zip_size=max_size)
Exemple #4
0
def submit(args):

  # Do we prefer ipynb, html or both?
  # sp.call(['jupyter', 'nbconvert', '--to', 'html', 'dlnd_image_classification.ipynb'])

  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = args.jwt_path)
def submit(args):

  # Do we prefer ipynb, html or both?
  # sp.call(['jupyter', 'nbconvert', '--to', 'html', 'dlnd_image_classification.ipynb'])

  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = args.jwt_path)
Exemple #6
0
def submit(args):

    sp.call(['jupyter', 'nbconvert', '--to', 'html', 'RNN_project.ipynb'])

    udacity.submit(nanodegree,
                   projects[0],
                   filenames,
                   environment=args.environment,
                   jwt_path=args.jwt_path)
Exemple #7
0
def submit(args):
  filenames = []
  for filename in filenames_all:
      if os.path.isfile(filename):
          filenames.append(filename)

  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = args.jwt_path)
Exemple #8
0
def submit(args):
    filenames = []
    for filename in filenames_all:
        if os.path.isfile(filename):
            filenames.append(filename)

    udacity.submit(nanodegree,
                   projects[0],
                   filenames,
                   environment=args.environment,
                   jwt_path=args.jwt_path)
Exemple #9
0
def submit(args):

    # Do we prefer ipynb, html or both?
    # sp.call(['jupyter', 'nbconvert', '--to', 'html', 'dlnd_image_classification.ipynb'])
    jwt_path = "D:\Projects\data_analysis\Projects\deep learning\deep-learning-v2-pytorch\project-bikesharing\.udacity-pa\jwt"
    udacity.submit(
        nanodegree,
        projects[0],
        filenames,
        environment=args.environment,
        #  jwt_path = args.jwt_path)
        jwt_path=jwt_path)
Exemple #10
0
def submit(args):
    filenames = []
    for filename in filenames_all:
        if os.path.isfile(filename):
            filenames.append(filename)

    udacity.submit(
        nanodegree,
        projects[0],
        filenames,
        environment=args.environment,
        jwt_path=
        '/Users/naderk/Documents/Projects/AIND-planning/.udacity-pa/jwt')
Exemple #11
0
def submit(args):
    filenames = []
    for filename in filenames_all:
        if os.path.isfile(filename):
            filenames.append(filename)

    if 'my_planning_graph.py' not in filenames:
        raise RuntimeError(
            "The file 'my_planning_graph.py' was not found in your current directory. This " +
            "file MUST be included in every PA submission.")
    if 'report.pdf' not in filenames:
        print(
            "WARNING: Make sure your submission includes a file named 'report.pdf' if you " +
            "expect this to be your final submission in the classroom for review.")

    udacity.submit(nanodegree, projects[0], filenames, 
                   environment = args.environment,
                   jwt_path = args.jwt_path)
Exemple #12
0
def submit(args):
  filenames = ['solution.py', 'README.md']
  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = "/Users/naderkutub/nkconsultingGD/udacity/AIND/sudoku/AIND-Sudoku/.udacity-pa/jwt")
Exemple #13
0
def submit(args):
  filenames = ['solution.py', 'README.md']

  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = args.jwt_path)
def submit(args):
  filenames = ['asl_recognizer.ipynb', 'asl_recognizer.html','my_model_selectors.py','my_recognizer.py']

  udacity.submit(nanodegree, projects[0], filenames, 
                 environment = args.environment,
                 jwt_path = args.jwt_path)