ประกาศ : โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์ทั้งหมดที่ลงทะเบียนเพื่อใช้ Earth Engine ก่อนวันที่
15 เมษายน 2025 ต้อง
ยืนยันการมีสิทธิ์ที่ไม่ใช่เชิงพาณิชย์ เพื่อรักษาสิทธิ์เข้าถึง หากคุณไม่ยืนยันภายในวันที่ 26 กันยายน 2025 ระบบอาจระงับสิทธิ์เข้าถึงของคุณ
ส่งความคิดเห็น
ee.Classifier.amnhMaxent
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวแยกประเภทเอนโทรปีสูงสุด Maxent ใช้เพื่อสร้างแบบจำลองความน่าจะเป็นในการกระจายพันธุ์โดยใช้ข้อมูลด้านสิ่งแวดล้อมสำหรับตำแหน่งที่มีการพบเห็นและสำหรับตำแหน่ง "พื้นหลัง" จำนวนมาก ดูข้อมูลเพิ่มเติมและอ้างอิงได้ที่ https://biodiversityinformatics.amnh.org/open_source/maxent/ และสิ่งพิมพ์อ้างอิง Phillips, et. al., 2004 A maximum entropy approach to species distribution modeling, Proceedings of the Twenty-First International Conference on Machine Learning. เอาต์พุตคือแถบเดียวชื่อ "probability" ซึ่งมีค่าความน่าจะเป็นที่สร้างแบบจำลอง และแถบเพิ่มเติมชื่อ "clamp" เมื่ออาร์กิวเมนต์ "writeClampGrid" เป็นจริง
การใช้งาน การคืนสินค้า ee.Classifier.amnhMaxent(categoricalNames , outputFormat , autoFeature , linear , quadratic , product , threshold , hinge , hingeThreshold , l2lqThreshold , lq2lqptThreshold , addSamplesToBackground , addAllSamplesToBackground , betaMultiplier , betaHinge , betaLqp , betaCategorical , betaThreshold , extrapolate , doClamp , writeClampGrid , randomTestPoints , seed )
ตัวแยกประเภท
อาร์กิวเมนต์ ประเภท รายละเอียด categoricalNames
รายการ (ค่าเริ่มต้น: null) รายการชื่อของอินพุตเชิงหมวดหมู่ อินพุตที่ไม่ได้ระบุไว้ในอาร์กิวเมนต์นี้จะถือว่าเป็นอินพุตต่อเนื่อง outputFormat
สตริง ค่าเริ่มต้น: "cloglog" การแสดงความน่าจะเป็นในเอาต์พุต autoFeature
บูลีน ค่าเริ่มต้น: จริง เลือกคลาสฟีเจอร์ที่จะใช้โดยอัตโนมัติตามจำนวนตัวอย่างการฝึก linear
บูลีน ค่าเริ่มต้น: จริง อนุญาตให้ใช้ฟีเจอร์เชิงเส้น ระบบจะไม่สนใจเมื่อ autofeature เป็นจริง quadratic
บูลีน ค่าเริ่มต้น: จริง อนุญาตให้ใช้ฟีเจอร์กำลังสอง ระบบจะไม่สนใจเมื่อ autofeature เป็นจริง product
บูลีน ค่าเริ่มต้น: จริง อนุญาตให้ใช้ฟีเจอร์ของผลิตภัณฑ์ ระบบจะไม่สนใจเมื่อ autofeature เป็นจริง threshold
บูลีน ค่าเริ่มต้น: false อนุญาตให้ใช้ฟีเจอร์เกณฑ์ ระบบจะไม่สนใจเมื่อ autofeature เป็นจริง hinge
บูลีน ค่าเริ่มต้น: จริง อนุญาตให้ใช้ฟีเจอร์บานพับ ระบบจะไม่สนใจเมื่อ autofeature เป็นจริง hingeThreshold
จำนวนเต็ม ค่าเริ่มต้น: 15 จำนวนตัวอย่างที่เริ่มใช้ฟีเจอร์บานพับ ระบบจะไม่สนใจเมื่อ autofeature เป็นเท็จ l2lqThreshold
จำนวนเต็ม ค่าเริ่มต้น: 10 จำนวนตัวอย่างที่เริ่มใช้ฟีเจอร์กำลังสอง ระบบจะไม่สนใจเมื่อ autofeature เป็นเท็จ lq2lqptThreshold
จำนวนเต็ม ค่าเริ่มต้น: 80 จํานวนตัวอย่างที่ระบบจะเริ่มใช้ฟีเจอร์ผลิตภัณฑ์และเกณฑ์ ระบบจะไม่สนใจเมื่อ autofeature เป็นเท็จ addSamplesToBackground
บูลีน ค่าเริ่มต้น: จริง เพิ่มตัวอย่างที่มีค่าสภาพแวดล้อมที่ยังไม่มีในพื้นหลังลงในพื้นหลัง addAllSamplesToBackground
บูลีน ค่าเริ่มต้น: false เพิ่มตัวอย่างทั้งหมดลงในพื้นหลัง แม้ว่าตัวอย่างจะมีค่าสภาพแวดล้อมที่ผสมกันซึ่งมีอยู่ในพื้นหลังแล้วก็ตาม betaMultiplier
Float, ค่าเริ่มต้น: 1 ตัวคูณการทำให้เป็นปกติ คูณพารามิเตอร์การทำให้เป็นค่าปกติอัตโนมัติทั้งหมดด้วยตัวเลขนี้ ตัวเลขที่สูงขึ้นจะทำให้การกระจายมีความสม่ำเสมอมากขึ้น betaHinge
Float, ค่าเริ่มต้น: -1 พารามิเตอร์การปรับค่าปกติที่จะใช้กับฟีเจอร์บานพับทั้งหมด ค่าลบจะเปิดใช้การตั้งค่าอัตโนมัติ betaLqp
Float, ค่าเริ่มต้น: -1 พารามิเตอร์การปรับค่าปกติที่จะใช้กับฟีเจอร์เชิงเส้น กำลังสอง และผลิตภัณฑ์ทั้งหมด ค่าลบจะเปิดใช้การตั้งค่าอัตโนมัติ betaCategorical
Float, ค่าเริ่มต้น: -1 พารามิเตอร์การปรับค่าปกติที่จะใช้กับฟีเจอร์เชิงหมวดหมู่ทั้งหมด ค่าลบจะเปิดใช้การตั้งค่าอัตโนมัติ betaThreshold
Float, ค่าเริ่มต้น: -1 พารามิเตอร์การปรับค่าที่จะใช้กับฟีเจอร์เกณฑ์ทั้งหมด ค่าลบจะเปิดใช้การตั้งค่าอัตโนมัติ extrapolate
บูลีน ค่าเริ่มต้น: จริง คาดการณ์ คาดการณ์ไปยังภูมิภาคของพื้นที่สภาพแวดล้อมที่อยู่นอกขีดจำกัดที่พบระหว่างการฝึก doClamp
บูลีน ค่าเริ่มต้น: จริง ใช้การยึดกับเอาต์พุต writeClampGrid
บูลีน ค่าเริ่มต้น: จริง เพิ่มแถบลงในเอาต์พุต ("clamp") ซึ่งแสดงการกระจายเชิงพื้นที่ของการแคลมป์ ในแต่ละจุด ค่าคือความแตกต่างสัมบูรณ์ระหว่างค่าการคาดการณ์ที่มีและไม่มีการแคลมป์ randomTestPoints
จำนวนเต็ม ค่าเริ่มต้น: 0 เปอร์เซ็นต์การทดสอบแบบสุ่ม เปอร์เซ็นต์ของจุดฝึกอบรมที่จะเก็บไว้เป็นจุดทดสอบ ซึ่งใช้ในการคำนวณ AUX, การละเว้น ฯลฯ seed
ยาว ค่าเริ่มต้น: 0 ค่าเริ่มต้นที่ใช้เมื่อสร้างตัวเลขสุ่ม
ตัวอย่าง
โปรแกรมแก้ไขโค้ด (JavaScript)
// Create some sample species presence/absence training data.
var trainingData = ee . FeatureCollection ([
// Species present points.
ee . Feature ( ee . Geometry . Point ([ - 122.39567 , 38.02740 ]), { presence : 1 }),
ee . Feature ( ee . Geometry . Point ([ - 122.68560 , 37.83690 ]), { presence : 1 }),
// Species absent points.
ee . Feature ( ee . Geometry . Point ([ - 122.59755 , 37.92402 ]), { presence : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.47137 , 37.99291 ]), { presence : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.52905 , 37.85642 ]), { presence : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.03010 , 37.66660 ]), { presence : 0 })
]);
// Import a Landsat 8 surface reflectance image.
var image = ee . Image ( 'LANDSAT/LC08/C02/T1_L2/LC08_044034_20200606' )
// Select the optical and thermal bands.
. select ([ '.._B.*' ]);
// Sample the image at the location of the points.
var training = image . sampleRegions ({ collection : trainingData , scale : 30 });
// Define and train a Maxent classifier from the image-sampled points.
var classifier = ee . Classifier . amnhMaxent (). train ({
features : training ,
classProperty : 'presence' ,
inputProperties : image . bandNames ()
});
// Classify the image using the Maxent classifier.
var imageClassified = image . classify ( classifier );
// Display the layers on the map.
// Species presence probability [0, 1] grades from black to white.
Map . centerObject ( image , 9 );
Map . addLayer (
image . select ([ 'SR_B4' , 'SR_B3' , 'SR_B2' ]). multiply ( 0.0000275 ). add ( - 0.2 ),
{ min : 0 , max : 0.3 }, 'Image' );
Map . addLayer (
imageClassified , { bands : 'probability' , min : 0 , max : 1 }, 'Probability' );
Map . addLayer (
trainingData . filter ( 'presence == 0' ), { color : 'red' },
'Training data (species absent)' );
Map . addLayer (
trainingData . filter ( 'presence == 1' ), { color : 'blue' },
'Training data (species present)' );
การตั้งค่า Python
ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap
เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า
สภาพแวดล้อม Python
import ee
import geemap.core as geemap
Colab (Python)
"""Demonstrates the ee.Classifier.amnhMaxent method."""
import ee
# Authenticates to the Earth Engine servers.
ee . Authenticate ()
# Initializes the client library.
ee . Initialize ()
# Create some sample species presence/absence training data.
training_data = ee . FeatureCollection ([
# Species present points.
ee . Feature ( ee . Geometry . Point ([ - 122.39567 , 38.02740 ]), { 'presence' : 1 }),
ee . Feature ( ee . Geometry . Point ([ - 122.68560 , 37.83690 ]), { 'presence' : 1 }),
# Species absent points.
ee . Feature ( ee . Geometry . Point ([ - 122.59755 , 37.92402 ]), { 'presence' : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.47137 , 37.99291 ]), { 'presence' : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.52905 , 37.85642 ]), { 'presence' : 0 }),
ee . Feature ( ee . Geometry . Point ([ - 122.03010 , 37.66660 ]), { 'presence' : 0 })
])
# Import a Landsat 8 image and select the reflectance bands.
image = ( ee . Image ( 'LANDSAT/LC08/C02/T1_L2/LC08_044034_20200606' )
. select ([ 'SR_B[1-7]' ])
. multiply ( 0.0000275 ) . add ( - 0.2 )) # Apply scaling factors.
# Sample the image at the location of the points.
training = image . sampleRegions ( ** {
'collection' : training_data ,
'scale' : 30
})
# Define and train a Maxent classifier from the image-sampled points.
classifier = ee . Classifier . amnhMaxent () . train ( ** {
'features' : training ,
'classProperty' : 'presence' ,
'inputProperties' : image . bandNames ()
})
# Classify the image using the Maxent classifier.
image_classified = image . classify ( classifier )
ส่งความคิดเห็น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
หากต้องการบอกให้เราทราบเพิ่มเติม
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[],["The core function creates a Maximum Entropy (Maxent) classifier to model species distribution probabilities. This classifier uses environmental data from known species presence locations and background locations. Key actions include training the classifier with presence/absence data, selecting features such as linear, quadratic, product, threshold, and hinge, and defining categorical inputs. The output includes a probability band, and optionally a clamp band showing the clamping difference, which is generated when using the `writeClampGrid` argument. It uses settings for extrapolation, clamping, and regularization.\n"]]