EnglishFrenchSpanish

OnWorks favicon

v.kcvgrass - Online in the Cloud

Run v.kcvgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command v.kcvgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


v.kcv - Randomly partition points into test/train sets.

KEYWORDS


vector, statistics, points, point pattern

SYNOPSIS


v.kcv
v.kcv --help
v.kcv map=name [layer=string] npartitions=integer [column=name] [--help] [--verbose]
[--quiet] [--ui]

Flags:
--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
map=name [required]
Name of vector map
Or data source for direct OGR access

layer=string
Layer number or name
Vector features can have category values in different layers. This number determines
which layer to use. When used with direct OGR access this is the layer name.
Default: 1

npartitions=integer [required]
Number of partitions
Must be > 1

column=name
Name for new column to which partition number is written
Default: part

DESCRIPTION


v.kcv randomly divides a points lists into k sets of test/train data (for npartitions-fold
cross validation). Test partitions are mutually exclusive. That is, a point will appear
in only one test partition and k-1 training partitions. The module generates a random
point using the selected random number generator and then finds the closest point to it.
This site is removed from the candidate list (meaning that it will not be selected for any
other test set) and saved in the first test partition file. This is repeated until enough
points have been selected for the test partition. The number of points chosen for test
partitions depends upon the number of sites available and the number of partitions chosen
(this number is made as consistent as possible while ensuring that all sites will be
chosen for testing). This process of filling up a test partition is done k times.

NOTES


An ideal random sites generator will follow a Poisson distribution and will only be as
random as the original sites. This module simply divides vector points up in a random
manner.

Be warned that random number generation occurs over the intervals defined by the current
region of the map.

This program may not work properly with Lat-long data.

EXAMPLES


All examples are based on the North Carolina sample dataset.
g.copy vect=geonames_wake,my_geonames_wake
v.kcv map=my_geonames_wake column=part npartitions=10

g.copy vect=geodetic_pts,my_geodetic_pts
v.kcv map=my_geodetic_pts column=part npartitions=10

Use v.kcvgrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad